[ 
https://issues.apache.org/jira/browse/FOP-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fred Holz updated FOP-2765:
---------------------------
    Description: 
When using "fo:basic-link" with an external URL, Apache FOP only produces the 
expected PDF result if the PDF is produced directly.


If the goal is to append multiply documents into one PDF-File by using the 
Intermediate Format and then concatinating them by 
IFConcatenator.appendDocument, the links do not work any more.

e.g.
<xsl:element name="fo:basic-link">
                                <xsl:attribute 
name="external-destination"><xsl:value-of 
select="url('http://google.de')"></xsl:value-of></xsl:attribute>
                                Link to Google
</xsl:element>

Won't work with this code:
IFConcatenator concatenator = new IFConcatenator(targetHandler, null);
            
            
            //Iterate over all intermediate files
            for (int i = 0; i < files.length; i++) {
                Source src = new StreamSource(files[i]);
                concatenator.appendDocument(src);
                
            }


For know I fixed the problem for me by removing the override of the method 
getDocumentNavigationHandler in the embedded class IFPageSequenceFilter of 
IFConcatenator.




  was:
When using "fo:basic-link" with an external URL, Apache FOP only produces the 
expected PDF result if the PDF is produced directly.

e.g.
<xsl:element name="fo:basic-link">
                                <xsl:attribute 
name="external-destination"><xsl:value-of 
select="url('http://google.de')"></xsl:value-of></xsl:attribute>
                                Link to Google
</xsl:element>

If the goal is to append multiply documents into one PDF-File by using the 
Intermediate Format and then concatinating them by 
IFConcatenator.appendDocument, the links do not work any more.

For know I fixed the problem for me by removing the override of the method 
getDocumentNavigationHandler in the embedded class IFPageSequenceFilter of 
IFConcatenator.





> fo:basic-Link does not work after using IFConcatenator.appendDocument
> ---------------------------------------------------------------------
>
>                 Key: FOP-2765
>                 URL: https://issues.apache.org/jira/browse/FOP-2765
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/pdf
>    Affects Versions: 1.1, 2.2
>         Environment: Linux, Windows
>            Reporter: Fred Holz
>            Priority: Minor
>
> When using "fo:basic-link" with an external URL, Apache FOP only produces the 
> expected PDF result if the PDF is produced directly.
> If the goal is to append multiply documents into one PDF-File by using the 
> Intermediate Format and then concatinating them by 
> IFConcatenator.appendDocument, the links do not work any more.
> e.g.
> <xsl:element name="fo:basic-link">
>                               <xsl:attribute 
> name="external-destination"><xsl:value-of 
> select="url('http://google.de')"></xsl:value-of></xsl:attribute>
>                               Link to Google
> </xsl:element>
> Won't work with this code:
> IFConcatenator concatenator = new IFConcatenator(targetHandler, null);
>             
>             
>             //Iterate over all intermediate files
>             for (int i = 0; i < files.length; i++) {
>                 Source src = new StreamSource(files[i]);
>                 concatenator.appendDocument(src);
>                 
>             }
> For know I fixed the problem for me by removing the override of the method 
> getDocumentNavigationHandler in the embedded class IFPageSequenceFilter of 
> IFConcatenator.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to