Dan Crosta wrote:

> Which works except that the very first bookmark is on the top of page
> 2 (should be at top of page 1). Am I missing something?

When you create a destination like in your code sample,
the destination points to the current page.
In your case, the current page is probably page 2.

If you want the bookmark to point to page 1,
you need something like this:

PdfAction bookmark =
   PdfAction.gotoLocalPage(1, // this is the page number!
     new PdfDestination(PdfDestination.XYZ, 0, 0, 0),
     writer);
new PdfOutline(writer.getRootOutline(),
   bookmark, letter.getAttribute( "name" ));

best regards,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to