O.K. so I figured it out (used the source, DUH!) Don't even mess with the chapters and sections (I am not writing a book here)
I just had to create the outline manually. which in reality was less code than using chapters and sections. after I opened my document, i did PdfContentByte cb = cb.getDirectContent(); and PdfOutline root = cb.getRootOutline(); Then every time I wanted a bookmark in the outline I did something like PdfDestination newReport = new PdfDestination(PdfDestination.XYZ, 0, 0, 0); PdfOutline report = new PdfOutline(root, newReport, title, false); cb.addOutline(report); title is a string containing my title, and false colapses the level so all the pages of the report aren't visible in the outline by default. This solved both my problems (zoom, and fontsize/title/printing); BTW if a document has a font with a size of 0 it will fail to print! -jason On Wednesday, February 6, 2002, at 05:04 PM, Jason Essington wrote: > hi all > > I am building a pdf file that contains several reports. I am using > chapters and sections to create a list of bookmarks (each report is a > chapter with each separate page being a section) the problem is that I > don't want the titles to appear on the page (I only want them in the > book mark list). I tried using a font of point size 0 but that creates > some problems when printing, so I have changed the titles font size to > 0.01f. Is there a better way to do this? > > Also when a bookmark is selected the page is changed, but the zoom is > changed also (I think to page width). Is there a way to control the > zoom when selecting a book mark? > -jason > > > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
