Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2666

Page Segment (IPS) Extension - FOP is not able to embed the page segment into the generated AFP document using resource-file attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1
    • None
    • renderer/afp
    • 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

      Attachments

        1. Files.zip
          343 kB
          Vikas
        2. Error_Log.txt
          11 kB
          Vikas

        Activity

          People

            Unassigned Unassigned
            vghegadi Vikas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: