Question on Page Segment

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

Question on Page Segment

vghegadi
Hi,

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="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="s1islogo" src="file:C://Users//utt281//git//FOP-Composition-Engine//Input//C1_Core_G_CMYK_R.tif"/>
      <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://Users//utt281//git//FOP-Composition-Engine//Input//C1_Core_G_CMYK_R.tif"
          width="160 div 2400 * 10in" height="192 div 2400 * 10in"/>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

Below is my AFP config,

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

I am missing anything?

Regards,
Vikas