Hugues Leonardi wrote:
> 
> Hello Paul,
> I just want to do a little feedback about my tests.
> I have done modifications on my little application which permit now to
> build correctly pdf files with external links.
> It works fine but on acrobat reader 7.0x, if I click on an external link:
> - if the link that points to an element which is between the top of the
> page and the middle of the page,  it's OK, the element is shown at the top
> of the acrobat reader window
> - if the link that points to an element which is between the bottom of the
> page and the middle of the page, the element is not shown at the top of
> the window.
> It's the same thing with bookmarks or internals links.
> 
> On acrobat reader 8, all is OK.
> 
> Best regards
> 
> Hugues Leonardi
> 
> 


Paul Vinkenoog wrote:
> 
> Hello Hugues,
> 
>>> All the external links open the second pdf at the first page in
>>> acrobat reader. I don't think it is the accent aigu in the id. My
>>> xsl-fo and the pdf files are here :
>>> http://leohome.free.fr/pmwiki/pmwiki.php?n=PmWiki.Documentation
>>> http://leohome.free.fr/pmwiki/pmwiki.php?n=PmWiki.Documentation
>>> External links have been written in red in the file named
>>> guide-demarrage.xml.pdf. There are in page 27, 31, 37, 40...
> 
> The reason it doesn't work is that there are no destinations defined
> in the target document. This doesn't happen automatically; you have to
> declare them in guide-reference.xml.fo like this:
> 
>   <fox:destination internal-destination="GDeLTK"/>
>   <fox:destination internal-destination="execfeuillestyle"/>
>   <fox:destination internal-destination="Unites"/>
>   <fox:destination
> internal-destination="DocumentAvecPoliceParticuliC(re"/>
>   <fox:destination internal-destination="ConfigurerFeuilleStyle"/>
>   <fox:destination internal-destination="liensexternes"/>
> 
> The order is unimportant, and they don't have to be all together
> either. Just make sure that each <fox:destination> is the direct child
> of a <fo:block>.
> 
> Also declare this namespace in guide-reference.xml.fo:
> 
>   xmlns:fox="http://xmlgraphics.apache.org/fop/extensions";
> 
> Then if you rebuild guide-reference, the named destinations will be
> included in the PDF. There's no need to rebuild guide-demarrage.
> 
> 
> BTW: your <fo:bookmark-tree>s currently contain this declaration:
>   xmlns:fox="http://xml.apache.org/fop/extensions";
> This is not necessary, because fo:bookmarks are part of the standard.
> Also, that URL is outdated, iirc.
> 
> 
> Hope this helps,
> Paul Vinkenoog
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Change-to-support-named-destination-and-test-files-tf3557038.html#a10233817
Sent from the FOP - Dev mailing list archive at Nabble.com.

Reply via email to