[ https://issues.apache.org/jira/browse/FOP-2666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16283689#comment-16283689 ]
Brian Warshaw commented on FOP-2666: ------------------------------------ Vikas, Your fo document is specifying a "name" attribute in include-page-segment, which is correct, but your pseg file does not have a name (or it's a zero-width name) in the BPS structured field. Your include-page-segment element is basically instructing fop to embed the resource named "PS000001" from the resource file named "PS000001.PSG," but that file does not contain a resource with the name "PS000001," which is why you're getting this error. > Page Segment (IPS) Extension - FOP is not able to embed the page segment into > the generated AFP document using resource-file attribute > -------------------------------------------------------------------------------------------------------------------------------------- > > Key: FOP-2666 > URL: https://issues.apache.org/jira/browse/FOP-2666 > Project: FOP > Issue Type: Bug > Components: renderer/afp > Affects Versions: 2.1 > Environment: Operating System: 64 bit Windows 7 Enterprise > FOP Version: 2.1 > Reporter: Vikas > Attachments: Error_Log.txt, Files.zip > > > 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 -- This message was sent by Atlassian JIRA (v6.4.14#64029)