xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Venkat Reddy <vanukuri.ven...@googlemail.com>
Subject Page Segment AFP extension
Date Tue, 22 Sep 2009 09:52:37 GMT
Hi,

Can someone guide me in using the following AFP extension 'Page Segment'?

I have following FO document extracted from one of the FOP mailing list. 
When I ran this example, I couldn't find anything on the AFP document. I 
thought the
page will be segmented based on the given resource.

Example:-

<?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="C:\mywork\JavaXSLTSamples\XSLFOSamples\fop.jpeg"/>
      <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="C:\mywork\JavaXSLTSamples\XSLFOSamples\fop.jpeg"
          width="160 div 2400 * 10in" height="192 div 2400 * 10in"/>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

I am just learning these extensions, trying out the page segment example 
from one of the mails.

Thanks,
Venkat.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message