please note that you can also open it with

org.apache.pdfbox.PDFDebugger  <pdf-file>

And that will give a GUI viewer of the internals of the PDF.

Ben

John Baute wrote:
Thanks to all for the replies.

Adam, you set me onto something. Thanks for that link. I also didn't know I could open 
the pdf in a text editor! One thing that sticks out to me when I open the document in 
notepad is that my "Count" fields have negative integers assigned to them, 
which is a direct violation of the spec. I am not sure why this would be. I will go back 
and look at my code. I have pasted a typical entry below. If anyone else sees any red 
flags, I would appreciate any tips.


<<
/Title (BID)
/Parent 381 0 R
/First 885 0 R
/Count -5
/Last 886 0 R
/Dest [27 0 R /FitH null]
/Next 809 0 R
Looking back through my document I have generated, there may also be some 
errors in the page some of the parents point to. That is, they point to pages 
after the children. Once again, I need to look at my code.

Andreas,

The problem I have when using the Repligo viewer is that there are NO bookmarks 
in the menu. When I ask it to show me the document's bookmarks, nothing comes 
up - as in the list is not populated.


--- On Fri, 6/12/09, Sudarsan, Sithu D. <sithu.sudar...@fda.hhs.gov> wrote:

From: Sudarsan, Sithu D. <sithu.sudar...@fda.hhs.gov>
Subject: RE:  Bookmarks and Repligo Reader (Blackberry PDF application)
To: pdfbox-users@incubator.apache.org, jmba...@yahoo.com
Date: Friday, June 12, 2009, 10:20 AM
Few questions:
1. Does this work on other PCs or same PC with other
usernames?
2. Did you check the security settings and properties?
3. Is Repligo Reader product compatible with standard PDF
readers,
seamlessly (and if yes, for which versions)?

Sincerely,
Sithu D Sudarsan

-----Original Message-----
From: John Baute [mailto:jmba...@yahoo.com]

Sent: Friday, June 12, 2009 10:09 AM
To: pdfbox-users@incubator.apache.org
Subject: Bookmarks and Repligo Reader (Blackberry PDF
application)


I have been using PDF Box (0.7.3) to combine multiple PDF
documents and
add a document outline and bookmarks with great success -
the merged
file works exactly as I intended on my PC. However, when I
move it to my
blackberry, the bookmarks are unavailable when read with
the Repligo
Reader product. This product has bookmark functionality,
and when tested
with docs from other sources it does work fine. So - I am
doing
SOMETHING wrong, but I am not sure what it is.

I have verified that all of the nodes in my bookmarks do
point to actual
pages, and have tried it with small documents vs larger
ones. But, after
that, I am out of ideas. Seems I must be missing something
that might be
part of the PDF standard that causes the mobile
application  to choke.

I have sent an email to their tech support but I honestly
do not expect
a reply.

Does anyone have an idea of what I could be doing wrong,
and more
importantly, a way to test it?

Thanks in advance.
John B





Reply via email to