|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] PDF Creation using FOP - No of lines per page
I created a FO out of my XSL and XML using Xalan then
I used FOP to convert my FO into PDF.. in my out put
pdf document.. the first page is a cover page and it
works fine and starting from the second page I wanted
to print the data.. everything works fine expect
that.. my pdf pages have only limited number of lines
i.e. around 10 lines after 10 lines it goes to the
next page.. leaving a major part of the page unused,
I just wanted to know why it is not using the whole
body area.. I am giving the XSL snippet here..
basically I want to know how to control the number of
lines per page in my output PDF
your help is highly appreciated
<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="first"
page-height="11in"
page-width="8.5in"
margin-top="0.5in"
margin-bottom="0.5in"
margin-left="0.5in"
margin-right="0.5in">
<fo:region-body margin-top="1in"/>
<fo:region-before extent="1in"/>
<fo:region-after extent="1in"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="rest"
page-height="11in"
page-width="8.5in"
margin-top="0.5in"
margin-bottom="0.5in"
margin-left="0.5in"
margin-right="0.5in">
<fo:region-body margin-top="1in"/>
<fo:region-before extent="1in"/>
<fo:region-after extent="1in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name="first">
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="end"
font-size="8pt"
font-family="serif"
line-height="8pt"> (Header) Page.
<fo:page-number/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="end"
font-size="8pt"
font-family="serif"
line-height="8pt">
Test SYSTEM
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" font="10pt
Times">
<fo:block font-size="12pt"
font-family="sans-serif"
line-height="14pt"
space-after.optimum="5pt"
background-color="blue"
color="white"
text-align="center">
Test SYSTEM - Body
</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-name="rest">
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="end"
font-size="8pt"
font-family="serif"
line-height="8pt">
(Header) Page. <fo:page-number/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="end"
font-size="8pt"
font-family="serif"
line-height="8pt">
Test SYSTEM
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" font="6pt
Times">
<fo:block
font-size="8pt"
font-family="sans-serif"
line-height="10pt" >
<!-- I am processing a DOM object here and
placing the data in the body of the pdf page-->
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
thanks
Anish
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








