On Jul 5, 2007, at 19:51, Jeff Powanda wrote:
Hi Jeff
In the FOP FAQ (http://xmlgraphics.apache.org/fop/faq.html#pdf-
bookmark-display), it says that FOP doesn’t currently allow you to
control bookmark display. However, it does mention that you could
use PDF post-processing to control bookmarks. Has anyone on this
list done that and would you be willing to share the solution?
Never did it myself, but there is an example of post-processing with
iText using Java:
http://xmlgraphics.apache.org/fop/0.93/output.html#pdf-postprocess
It is for a different purpose, and well, it seems there is a caveat
preventing the use of bookmarks. That was so for older FOP versions,
but I have no idea whether this has changed in the meantime... It
would be cool if someone could check this out.
At http://www.lowagie.com/iText/docs.html, you should find the
necessary info to tell iText to collapse the bookmarks (if it does
not swallow them, hopefully...)
I had a quick glance at the iText API docs and I think you need to
play with com.lowagie.text.pdf.PdfOutline.setOpen(). You can pass a
boolean flag to indicate whether the children of a given node should
be visible by default.
HTH!
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]