[jira] [Commented] (FOP-3263) Named destinations not created

"Joao Goncalves (Jira)" <[email protected]>
Newsgroups gmane.text.xml.fop.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/FOP-3263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18010680#comment-18010680 ] 

Joao Goncalves commented on FOP-3263:
-------------------------------------

Can you attach a PDF with the named destinations showing? I'll try and use that one to see what else might be missing. It seems only adobe is not showing the named notations as the 2 other viewers I tried did show them.

PDFs are gibberish but you can still see some things.


{code:java}
// code placeholder
25 0 obj
<< /Type /Action
/S /GoTo
/D [10 0 R /XYZ 72.0 720.0 null]
>>
endobj
26 0 obj
<< /Type /Action
/S /GoTo
/D [10 0 R /XYZ 72.0 353.2 null]
>>
endobj
27 0 obj
<< /Type /Action
/S /GoTo
/D [15 0 R /XYZ 72.0 720.0 null]
>>
endobj
28 0 obj
<< /Type /Action
/S /GoTo
/D [15 0 R /XYZ 72.0 535.2 null]
>>
endobj
29 0 obj
<< /Type /Action
/S /GoTo
/D [15 0 R /XYZ 72.0 294.4 null]
>>
endobj
30 0 obj
<< /Type /Action
/S /GoTo
/D [15 0 R /XYZ 72.0 207.6 null]
>>
endobj
31 0 obj
<< /Type /Action
/S /GoTo
/D [18 0 R /XYZ 72.0 530.0 null]
>>
endobj
32 0 obj
<< /Type /Action
/S /GoTo
/D [21 0 R /XYZ 72.0 618.0 null]
>>
endobj
33 0 obj
<< /Type /Action
/S /GoTo
/D [21 0 R /XYZ 72.0 447.2 null]
>>
endobj
34 0 obj
<< /Type /Action
/S /GoTo
/D [21 0 R /XYZ 72.0 304.4 null]
>>
endobj
35 0 obj
<< /Type /Action
/S /GoTo
/D [24 0 R /XYZ 72.0 720.0 null]
>>
endobj
36 0 obj
<< /Type /Action
/S /GoTo
/D [24 0 R /XYZ 72.0 591.2 null]
>>
endobj{code}
There are the named destinations from the file you posted.

 

 

> Named destinations not created
> ------------------------------
>
>                 Key: FOP-3263
>                 URL: https://issues.apache.org/jira/browse/FOP-3263
>             Project: FOP
>          Issue Type: Bug
>            Reporter: Michael Tsurikov
>            Priority: Major
>         Attachments: SomeTopicsWithDests.fo, SomeTopicsWithDests.pdf, image-2025-07-10-10-51-33-270.png
>
>
> Please allow me to report a potential bug with the creation of named destinations in PDFs from Apache FOP.
> Consider the attached SomeTopicsWithDests.fo. It attempts to create several named destinations using the syntax specified on [https://xmlgraphics.apache.org/fop/2.11/extensions.html] . Specifically:
>  * It includes xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" in the fo:root element.
>  * It defines id attributes for several fo:block elements.
>  * It defines fox:destination elements for those fo:block elements.
> Apache FOP 2.11 processes the file with no errors and creates the attached SomeTopicsWithDests.pdf. However, that PDF has no named destinations:
> !image-2025-07-10-10-51-33-270.png!
> If this is a bug, I hope you can fix it. If it's not, please explain what I'm doing wrong so I can get Apache FOP to generate named destinations for my file. Thank you!
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.