Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.1
-
None
-
None
-
Operating System: 64 bit Windows 7 Enterprise
FOP Version: 2.1
Description
I am trying to generate an AFP document which embeds Page Segment (for PNG image) using additional attribute "resource-file" with afp:include-page-segment tag.
I keep getting below error message, while trying to transform FO object into AFP,
"SEVERE: Exception
org.apache.fop.apps.FOPException: org.apache.fop.render.intermediate.IFException: Could not handle resourcefile:C://Vikas//IPS//PS000001.PSG"
Below is code snippet of my FO object,
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:afp="http://xmlgraphics.apache.org/fop/extensions/afp">
<fo:layout-master-set>
<fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm">
<afp:include-page-segment name="PS000001" src="file:C://vikas//IPS//asf-logo.png" resource-file="file:C://Vikas//IPS//PS000001.PSG"/>
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:external-graphic src="file:C://vikas//IPS//asf-logo.png"
width="160 div 2400 * 10in" height="192 div 2400 * 10in"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
I created a Page Segment using AFP Print Driver as mentioned in below url,
http://www-01.ibm.com/support/docview.wss?uid=nas8N1018625
Appreciate your help on this