Of course - that's one key use of iText, to modify PDFs dynamically. Adding named destinations should be very fast, because the data can just be appended to the end of the document as part of an update section. However, it is NOT necessary to load the entire PDF to add new stuff.
Also, it is not possible to prepend in PDF - only append. Leonard From: Feng Qing [mailto:fengqing...@yahoo.com] Sent: Tuesday, October 28, 2014 1:45 AM To: Leonard Rosenthol; Post all your questions about iText here; iText mailing list Subject: iText prepend named destinations? (open with exact coordinates & page) Can I use iText to add such named destinations on the fly? The main concern is 1. can iText, or PDFBox or other tools capable of adding names destinations? 2. what is the speed of iText's opening-modify-save the PDF? This is a question analogous to the concept of "linearized PDF" which enables fast viewing for web browsers by organizing page information to more "front" of the document stream. If I would like to add named destinations to a PDF with iText, can they be prepended before actually fully loading the entire document, using C#/Java operations like simply appending something to the existing file at the front, without even loading the entire one; or we must loading the entire content first and then add the named destinations? Feng On Tuesday, October 28, 2014 3:23 AM, Leonard Rosenthol <lrose...@adobe.com<mailto:lrose...@adobe.com>> wrote: No, there is not. If you have a PDF where you need this level of viewing control, preparing it in advanced with named destinations is the best approach. Or perhaps if you tell us what you end goal is we might be able to help. From: Feng Qing <fengqing...@yahoo.com<mailto:fengqing...@yahoo.com>> Reply-To: Feng Qing <fengqing...@yahoo.com<mailto:fengqing...@yahoo.com>> Date: Monday, October 27, 2014 at 2:08 PM To: Leonard Rosenthol <lrose...@adobe.com<mailto:lrose...@adobe.com>>, Post here <itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>>, iText mailing list <i...@1t3xt.info<mailto:i...@1t3xt.info>> Subject: Re: [iText-questions] Link to specific coordinates within PDF? No directly ways of doing that, like appending http://...example.pdf#page=1&xCoord=200&yCoord=300<http://...example.pdf/#page=1&xCoord=200&yCoord=300> ? On Monday, October 27, 2014 11:40 PM, Leonard Rosenthol <lrose...@adobe.com<mailto:lrose...@adobe.com>> wrote: Yes, if you prepare the PDF first, you can use named destinations. From: Feng Qing <fengqing...@yahoo.com<mailto:fengqing...@yahoo.com>> Reply-To: Feng Qing <fengqing...@yahoo.com<mailto:fengqing...@yahoo.com>>, Post here <itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>> Date: Monday, October 27, 2014 at 11:22 AM To: iText mailing list <i...@1t3xt.info<mailto:i...@1t3xt.info>>, Post here <itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>> Subject: Re: [iText-questions] Link to specific coordinates within PDF? Hello, Thanks very much! However, although there are { page number specific comment view zoom level } parameters that can be embedded in URL, there is no option to exactly specify the coordinate location associated with opening a specific page. Can that actually be done? Feng On Monday, October 27, 2014 5:29 PM, iText mailing list <i...@1t3xt.info<mailto:i...@1t3xt.info>> wrote: On 10/26/2014 21:53 PM, Feng Qing wrote: Hello, As http://helpx.adobe.com/acrobat/kb/link- html -pdf-page-acrobat. html<http://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html%5D> shown, to add html link to specific page in a PDF document one writes "http://www.example.com/myfile.pdf#page=4"<http://www.example.com/myfile.pdf#page=4> However if further we would like to link to specific coordinate within the PDF file, like (300, 500), is there a link scheme to achieve that? Please take a look at the following document for more info: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf You are looking for the "view" parameter.
------------------------------------------------------------------------------
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php