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 <[email protected]>
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 <[email protected]>
Reply-To: Feng Qing <[email protected]>
Date: Monday, October 27, 2014 at 2:08 PM
To: Leonard Rosenthol <[email protected]>, Post here
<[email protected]>, iText mailing list <[email protected]>
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 ?
On Monday, October 27, 2014 11:40 PM, Leonard Rosenthol <[email protected]>
wrote:
Yes, if you prepare the PDF first, you can use named destinations.
From: Feng Qing <[email protected]>
Reply-To: Feng Qing <[email protected]>, Post here
<[email protected]>
Date: Monday, October 27, 2014 at 11:22 AM
To: iText mailing list <[email protected]>, Post here
<[email protected]>
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 <[email protected]> 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 shown,
>to add html link to specific page in a PDF document one writes
>"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
[email protected]
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