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

Hendrik Intveen updated FOP-2672:
---------------------------------
    Attachment: win2008.fo
                win7.fo
                19990610120000_1_01.png

fo-files and image to include

> Image Include needs different file path syntax depending on Windows OS version
> ------------------------------------------------------------------------------
>
>                 Key: FOP-2672
>                 URL: https://issues.apache.org/jira/browse/FOP-2672
>             Project: FOP
>          Issue Type: Bug
>          Components: image/png
>    Affects Versions: 2.1
>         Environment: Windows 7 and Windows 2008 R2
>            Reporter: Hendrik Intveen
>         Attachments: 19990610120000_1_01.png, win2008.fo, win7.fo
>
>
> fop 2.1 needs different file paths to render an image correctly to the pdf 
> output. The image is in the same folder as the .fo-file
> This Version works with Windows 7 but not with Windows 2008 R2:
> {quote}
> <?xml version="1.0" encoding="UTF-8"?><fo:root 
> xmlns:fo="http://www.w3.org/1999/XSL/Format";><fo:layout-master-set><fo:simple-page-master
>  master-name="baseside" margin="10mm 10mm 10mm 10mm" page-width="210mm" 
> page-height="297mm"><fo:region-body margin="20mm 6mm 20mm 
> 10mm"/><fo:region-before display-align="after" precedence="true" 
> extent="15mm" region-name="header"/><fo:region-after display-align="after" 
> extent="20mm" region-name="foot"/><fo:region-start reference-orientation="90" 
> extent="17.8mm" region-name="left"/><fo:region-end 
> reference-orientation="270" extent="6mm" 
> region-name="right"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence
>  master-reference="baseside"><fo:flow flow-name="xsl-region-body"><fo:block 
> text-align="center"><fo:external-graphic scaling="uniform" 
> content-width="scale-to-fit" content-height="100%" width="100%" 
> src="image.png"/></fo:block></fo:flow></fo:page-sequence></fo:root>
> {quote}
> This works with Windows 2008 R2 but not with Windows 7:
> {quote}
> <?xml version="1.0" encoding="UTF-8"?><fo:root 
> xmlns:fo="http://www.w3.org/1999/XSL/Format";><fo:layout-master-set><fo:simple-page-master
>  master-name="baseside" margin="10mm 10mm 10mm 10mm" page-width="210mm" 
> page-height="297mm"><fo:region-body margin="20mm 6mm 20mm 
> 10mm"/><fo:region-before display-align="after" precedence="true" 
> extent="15mm" region-name="header"/><fo:region-after display-align="after" 
> extent="20mm" region-name="foot"/><fo:region-start reference-orientation="90" 
> extent="17.8mm" region-name="left"/><fo:region-end 
> reference-orientation="270" extent="6mm" 
> region-name="right"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence
>  master-reference="baseside"><fo:flow flow-name="xsl-region-body"><fo:block 
> text-align="center"><fo:external-graphic scaling="uniform" 
> content-width="scale-to-fit" content-height="100%" width="100%" 
> src="file:///image.png"/></fo:block></fo:flow></fo:page-sequence></fo:root>
> {quote}
> I've also posted the problem to stack overflow:
> http://stackoverflow.com/questions/40914980/fop-image-include-needs-different-syntax-depending-on-windows-os-version-win-7



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to