If no one here helps you, perhaps try stackoverlow.com? There seem to be at
least a few friendly folks over there who use pdfbox (and like tools).



On Mon, Jul 19, 2010 at 8:08 AM, Kevin Brown <[email protected]> wrote:

> Chemi,
>
> Yes, working with named dests in pdfbox can be a little frustrating.  I
> hope to experiment further some time soon. Hope some one else can chime in
> with some wisdom.
>
> Re your first point, maybe you could use PDF CanOpener or something like
> that to get a good look at how the pdfbox named destinations differ from
> 'regular' ones to find out exactly how they are different? Just a thought.
> You can get the working demo for free.
>
> Good luck to you!
>
> Kevin
>
>
>
> On Mon, Jul 19, 2010 at 7:57 AM, Chemi <[email protected]> wrote:
>
>>
>> I found really cryptic how to use the API to add those destinations. I
>> understand nobody in the list is aware of any sample, tutorial or what ever
>> piece of doc about this topic. Right?
>>
>> As I commented before, I was able to add a Destination and verified it
>> worked more or less fine. I said it worked because I was able to issue:
>>
>>    AcroRd32.exe /A "nameddest=CHEMI" PDFOpenParameters2.pdf
>>
>> and it was opened exactly where I said: 500,500.
>>
>> But I said more or less, because:
>>
>>    - Adobe Acrobat (not the reader) doesn't show the destinations
>> correctly once I added mine. It is not an issue for my objective but
>> wondering why...
>>
>>    - I don't find an easy way to add destinations to specific lines of
>> code. I am not able to get the coords of a COString. And BTW, in my PDFs
>> there are tons of COStrings, most of them based on a single letter of a
>> word. Gulp!
>>
>> I was thinking about extracting all the content to a StringWriter in
>> memory, split the content in lines, and perform math calculations to know in
>> which page I am, and which should be the coords for such line. Although I
>> think this is not a good way to achieve this. Of course, I base tis solution
>> in the idea that all my PDFs have text, using the same font, etc...
>>
>> It seems coord 0,0 is the most down,left point of a page, while 0,800 is
>> the most up,left one. I got this info testing, so it is not accurate.
>>
>> Any advise?
>>
>> Thanks again,
>>
>>      Chemi.
>>
>
>

Reply via email to