My code needs to cut two versions of a pdf. One bound for printing and one bound for the website.
We only want to use bookmarks in the PDF bound for the website. I did some testing, and adding a PdfDestination by itself adds no size to the file unless that destination is added to a PdfOutline. Knowing that, I want to let all my code add common components and destinations like so....and in the end, if a condition exists, add the destinations to the correct outline. Something like this: PdfContentByte cb = writer.getDirectContent(); ArrayList<PdfDestination> bookmarks = new ArrayList<PdfDestination>(); addStuff(bookmarks); addMoreStuff(bookmarks); addEvenMoreStuff(bookmarks); If( useBookmarks ){ for (PdfDestination d : bookmarks) { //add the destination to the appropriate parent //this is where I need help! } } Is this possible? Jason The PEN is now mightier than the PIN. Simply use your PEN instead of your PIN and sign for your PEFCU Visa Check Card purchases. Earn bonus points redeemable for gift and travel awards. Combine PEFCU Visa check card and credit card points for even more rewards. ***This is a transmission from Purdue Employees Federal Credit Union (PEFCU) and is intended solely for its authorized recipient(s), and may contain information that is confidential and or legally privileged. If you are not an addressee, or the employee or agent responsible for delivering it to an addressee, you are hereby notified that any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this transmission in error, please notify us by telephoning (765) 497-3328 or returning the email. You are then instructed to delete the information from your computer. Thank you for your cooperation.*** ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/