Re: getting page numbers of named destinations

2010-06-18 Thread Kevin Brown
One thing I haven't been able to get is the actual name of the named destinations. You would think there would be something like getName() setName() methods. I'll keep poking around. On Fri, Jun 18, 2010 at 1:23 PM, Kevin Brown wrote: > This aint pretty. It's just a proof of concept written by

Re: getting page numbers of named destinations

2010-06-18 Thread Kevin Brown
This aint pretty. It's just a proof of concept written by a Java hacking fool. I'm going to refactor if I get approval. :) Basically you need to start with this (document is a PDDocument): PDDocumentCatalog log = document.getDocumentCatalog(); PDDocumentNameDictionary dic = log.getN

Re: getting page numbers of named destinations

2010-06-18 Thread Adam
Hesham, A named destination is a specific type of node in the document outline (aka a specific type of bookmark). A "normal" bookmark will point to a page (via the page's object ID and revision) while a named destination will point to some name. Then that needs to be resolved (somehow

Re: Still confused - String width to point size

2010-06-18 Thread Andreas Lehmkuehler
Hi, Rajagopalan Srinivasan schrieb: Several of the PDFont methods have the explanation: " The width is in 1000 unit of text space, ie 333 or 777" for string width and so on. I am not really clear what this means. How can I relate to points? Thanks for any help. Copied from th PDF-reference

Still confused - String width to point size

2010-06-18 Thread Rajagopalan Srinivasan
Several of the PDFont methods have the explanation: " The width is in 1000 unit of text space, ie 333 or 777" for string width and so on. I am not really clear what this means. How can I relate to points? Thanks for any help. Cheers, srini

Re: getting page numbers of named destinations

2010-06-18 Thread Kevin Brown
I'll send some code snippets today. Basically you have to get the PDNameDestinationNodes and... well, I don't have it here, will post today. Kevin On Thu, Jun 17, 2010 at 11:12 PM, Hesham G. wrote: > Kevin , > > I have been watching this post out, and I don't seem to understand yet what > is

Re: Tweaking character transformation

2010-06-18 Thread Andreas Lehmkühler
Hi, > Hello, > > I am converting (mathematical) PDF files to text for indexing. > While the newest version is already pretty good at this, I would love to be > able to tweak PDFbox a little here and there to adjust the conversion of > characters. > So I'm wondering where I would have to intervene

Tweaking character transformation

2010-06-18 Thread Thomas Fischer
Hello, I am converting (mathematical) PDF files to text for indexing. While the newest version is already pretty good at this, I would love to be able to tweak PDFbox a little here and there to adjust the conversion of characters. So I'm wondering where I would have to intervene, which file I wo