Nope.. that does not quite do what we need.  What I had hoped to do was to
create one Master TOC
that would be placed in each PDF file.  Each of the Actions would be
GoToR... In some cases, the
"filename" would be the file we are in currently in.  In other cases it may
be another pdf.  Perhaps and example
would help:

1.pdf has three bookmarks:
    A
    B
    C

2.pdf has three bookmarks:
    D
    E
    F


I would like to have one master TOC that has bookmarks A-F such that when
the user opens 1.pdf... they
can use the toc to seemlessly navigate A-F even across PDF files.  I had
hoped to just create each PDFAction() as
PdfAction(filename, pageNumber) so that the TOC would be identical in both
1.pdf and 2.pdf.  The NEWWINDOW
parameter you speak does not allow me to go from one file to the other using
the same TOC and stay in just one PDF window.

Perhaps.. I just have to quit trying to use the same TOC in all PDFs. 
Wanted to ask before I gave up on it.



Bruno Lowagie (iText) wrote:
> 
> BorisTheCat wrote:
>> my implementation
>> was to ALWAYS us gotoR with the PDF filename, expecting it to act just
>> like
>> GoTo when the goto was actually going to a page within the local file. 
>> While it does jump to that page correctly, the bookmark pane goes away
>> never
>> to return unless I close and reopen the original PDF file.  Is there a
>> way
>> to use GoToR across the board like this to achieve my goal ?
> 
> What you're saying is: if you use GoToR, the current PDF (the TOC)
> is REPLACED by the new PDF. Instead you want the new PDF to open,
> and leave the TOC PDF open as well.
> Have you tried this method with newWindow is true:
> http://itext.ugent.be/library/api/com/lowagie/text/pdf/PdfAction.html#gotoRemotePage(java.lang.String,%20java.lang.String,%20boolean,%20boolean)
> 
> If you want to use this functionality with other GoToR
> actions, it may be sufficient to add the following line:
> action.put(PdfName.NEWWINDOW, PdfBoolean.PDFTRUE);
> (provided that action is an object of type PdfAction.)
> 
> Give it a try, and let me know if it works
> (I'm going to bed now, I hope I feel better tomorrow).
> br,
> Bruno
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/GoToR-vs.-GoTo-tf3234432.html#a8991714
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to