[ 
https://issues.apache.org/jira/browse/FOP-2589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15189176#comment-15189176
 ] 

Le Duy Nhac commented on FOP-2589:
----------------------------------

Hello Simon,

Thank you for your quick feedback but I still cannot create BPS/EPS tags.

Could you please give me your example?

Below is my example:
>fop -fo afp-page-segment-demo.fo -afp afp-page-segment-demo.afp

---afp-page-segment-demo.fo---
<?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:/temp/2_BW.tif" 
/><!--resource-file="resources.afp"-->
      <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:/temp/2_BW.tif"  width="160 div 
2400 * 10in" height="192 div 2400 * 10in"/>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

--fop-config.xml---
    <renderer mime="application/x-afp">
      <images mode="b+w" bits-per-pixel="8"/>
      <renderer-resolution>240</renderer-resolution>
      <line-width-correction>2.5</line-width-correction>
      <resource-group-file>resources.afp</resource-group-file>
      <default-resource-levels goca="print-file" 
bitmap="inline"/><!--bitmap="print-file"-->
    ...
    </renderer>

> how to support BPS/EPS to the page segment functionality for AFP rendering
> --------------------------------------------------------------------------
>
>                 Key: FOP-2589
>                 URL: https://issues.apache.org/jira/browse/FOP-2589
>             Project: FOP
>          Issue Type: Improvement
>          Components: unqualified
>    Affects Versions: trunk
>         Environment: Operating System: All
> Platform: All
>            Reporter: Le Duy Nhac
>            Assignee: fop-dev
>         Attachments: BPS_EPS_Apearrence.png
>
>
> I don't know how to create BPS (Begin Page Segment)/ EPS (End Page Segment) 
> into the generated AFP. I found that in FOP-1809 you can do that via the 
> optional attribute 'resource-file' of The include-page-segment extension 
> element.
> Could you please give me an example how to create BPS/EPS? (I am using 
> fop-2.1.jar)
> Thank you!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to