[
https://issues.apache.org/jira/browse/PDFBOX-4117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561737#comment-17561737
]
Gilad Denneboom commented on PDFBOX-4117:
-----------------------------------------
I'm back to this class and am having issues using it to link to a specific page
of an embedded PDF file.
When I try to use setPageNumber on the PDDestination object I get the following
error message:
java.lang.IllegalArgumentException: Destination of a GoToE action must be a
page dictionary object
However, I don't see a way to get a reference to the PDPage object for the
target page so I could use it with setPage.
I think the implementation of this class needs to be adjusted to allow
specifying only a page number, not a Page object.
Acrobat does that when you create such links manually. The COSArray under D
contains a page number reference in the first item, not a page reference.
> Implement GoToE action-type
> ---------------------------
>
> Key: PDFBOX-4117
> URL: https://issues.apache.org/jira/browse/PDFBOX-4117
> Project: PDFBox
> Issue Type: New Feature
> Components: AcroForm
> Affects Versions: 1.8.13, 2.0.8
> Reporter: Gilad Denneboom
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.9, 3.0.0 PDFBox
>
> Attachments: Sample GoToE Link.pdf
>
>
> One of the major Action Types is not implemented in any version of PDFBox,
> and I believe it should be. I'm referring to "Embedded Go-To Actions"
> (defined under 12.6.4.4 in PDF 32000-1:2008), which allows a link to open an
> attached file. Currently, such "GoToE" actions are interpreted as "null" by
> PDFBox, which is not ideal.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]