pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Friedrich, Christian (ext)" <friedrich.christian....@siemens.com>
Subject PDActionRemoteGoTo
Date Tue, 21 Jun 2011 13:48:41 GMT
Hi Guys,

Currently I'm using the PDActionRemoteGoTo Class to create links to pages in external documents.
This works fine with this piece of code:

>    PDActionRemoteGoTo go = new PDActionRemoteGoTo();
>    go.setFile(PDFileSpecification.createFS((new COSString("C:/somePDF.pdf"))));
>    COSArray ca = new COSArray();
>    ca.add(COSInteger.get(2));
>    go.setD(ca);
>    go.setOpenInNewWindow(true);

The PDF "C:/somePDF.pdf" opens at page 3 when the action is triggered.
The only problem is that the default view after clicking the link shows the document with
a zoom of 6400%. I would like to view the page in a suitable size (page view). How do I add
this parameter to the PDActionRemoteGoTo object? The only way I could imagine this could work
is adding the information somehow to the COSArray, but how?

Mit freundlichen Grüßen
Christian Friedrich

Forschungszentrum Informatik
Externer Dienstleister der Siemens AG
Corporate Technology
Otto-Hahn-Ring 6
81739 München, Deutschland
Tel.: +49 (89) 636-32801

Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen enthalten firmenvertrauliche Informationen.
Sollten Sie diese E-Mail irrtümlich erhalten haben, benachrichtigen Sie uns bitte durch Antwort-Mail
und löschen Sie diese E-Mail nebst Anlagen von Ihrem System. Vielen Dank.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message