Question on Page Segment

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Question on Page Segment


I am able to generate AFP file with Page Segment. But, when i view generated document, i dont get to see the image in it. This could be because the viewer doesn't have resource file.

So, i am trying to create a resource file with reffered images in it while creating AFP using below configuration. Which i am then planning to use within AFP viewer while opening document.

But, i dont see a resource file being created. Also tried creating an empty resource file, thinking it will get updated as we run fop, but it dint happen.

I am using FOP V2.1

Below are my FO file,
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo=""
    <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm">
      <afp:include-page-segment name="s1islogo" src="file:C://Users//utt281//git//FOP-Composition-Engine//Input//C1_Core_G_CMYK_R.tif"/>
  <fo:page-sequence master-reference="A4">
    <fo:flow flow-name="xsl-region-body">
        <fo:external-graphic src="file:C://Users//utt281//git//FOP-Composition-Engine//Input//C1_Core_G_CMYK_R.tif"
          width="160 div 2400 * 10in" height="192 div 2400 * 10in"/>

Below is my AFP config,

    <renderer mime="application/x-afp">
                <images mode="color" native="true"/>
                <default-resource-levels goca="print-file" bitmap="inline"/>         

I am missing anything?