|
next
|
Subject: info required about fo processors: Author: Aleksey Payzansky Date: 12 Apr 2007 04:40 AM Originally Posted: 12 Apr 2007 04:29 AM
|
Dear Sandeep,
I have never worked with Apache FOP, but, based on my knowledge of xsl:fo, I do not think there should be a problem.
You would refer to the proper block_id in your FO script and assign the same block_id name in your XML code, or grab it dynamically, using XSL standard function generate-id().
I do not know your particular code, if you provide the one, maybe, I can help you to handle the problem. I am attaching the sample created myself - test.fo and the output file, test.pdf.
To generate this PDF file, I use XEP formatter from RenderX -
http://www.renderx.com/tools/index.html.
So you can obtain the trial license and try to play with. Also, some code examples and demos are available -
http://www.renderx.com/demos/examples.html
PS. I am not sure the attached FO code could be saved correctly, so here is my sample code:
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="my-page">
<fo:region-body margin="1in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="my-page">
<fo:flow flow-name="xsl-region-body" font="12pt Times">
<fo:block>
<fo:block text-align="center" font-size="200%" font-weight="bold">Test document</fo:block>
<fo:block>Below there is the reference</fo:block>
<fo:basic-link color="blue" internal-destination="my_block_id">LINK</fo:basic-link>
<fo:block>Some text</fo:block>
<fo:block break-before="page" id="my_block_id" color="red">Link points on this text block</fo:block>
<fo:block>Some text</fo:block>
<fo:block break-before="page">Some text</fo:block>
<fo:block>Some text</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
test(1).pdf Sample output
test(2).fo Sample Code
|
|
|