xsl-fo

what are the leading XSL-FO implementations? How do I decide among them?

断了今生、忘了曾经 提交于 2019-12-18 16:10:32
问题 I'm evaluating PDF rendering technologies. XSL-FO is our chosen path because its an open standard and our source data is XML. What experiences have people had with the various implementations of XSL-FO? The implementations I've found so far are: renderX ecrion Antenna House Apache FOP The criteria I'm using to evaluate are: performance, stability, supportability, price, template management tools. Also important: good java APIs and ability to run on Unix. Whatever product we end up choosing,

XSL FO inline alignment

人走茶凉 提交于 2019-12-18 11:05:13
问题 I need to get text aligned right and left on the same line. This should be possible, but i can't seem to find a way. I'm using Apache FOP to convert xml to pdf. Can someone help me to get this right? 回答1: Elegance wasn't a stated requirement, but this should fit the bill: <fo:block text-align-last="justify"> LEFT TEXT <fo:leader leader-pattern="space" /> RIGHT TEXT </fo:block> This works by justifying the last line of text in the block, so that the text begins at the left of the line and ends

XSL FO inline alignment

青春壹個敷衍的年華 提交于 2019-12-18 11:04:52
问题 I need to get text aligned right and left on the same line. This should be possible, but i can't seem to find a way. I'm using Apache FOP to convert xml to pdf. Can someone help me to get this right? 回答1: Elegance wasn't a stated requirement, but this should fit the bill: <fo:block text-align-last="justify"> LEFT TEXT <fo:leader leader-pattern="space" /> RIGHT TEXT </fo:block> This works by justifying the last line of text in the block, so that the text begins at the left of the line and ends

How can I sum up some values per page in a table in XSL-FO?

让人想犯罪 __ 提交于 2019-12-18 07:25:46
问题 I'm using XSL-FO to generate an account statement print out. The PDF is actually just a simple table with a simple header on every page. The difficulty is that I have to display transaction volumes per page, e.g. Page 1 +------------------------------+-----------+-----------+---------------------+ | Text | Credit | Debit | Balance | +------------------------------+-----------+-----------+---------------------+ | Previous month | | | (*1) 1000 | | abc | 1000 | | 2000 | | abc | | 500 | 1500 | |

How can I sum up some values per page in a table in XSL-FO?

限于喜欢 提交于 2019-12-18 07:25:12
问题 I'm using XSL-FO to generate an account statement print out. The PDF is actually just a simple table with a simple header on every page. The difficulty is that I have to display transaction volumes per page, e.g. Page 1 +------------------------------+-----------+-----------+---------------------+ | Text | Credit | Debit | Balance | +------------------------------+-----------+-----------+---------------------+ | Previous month | | | (*1) 1000 | | abc | 1000 | | 2000 | | abc | | 500 | 1500 | |

Does FOP 2.1 support ViewerPreferences?

北慕城南 提交于 2019-12-17 20:52:40
问题 I'm using FOP 2.1 and am trying to set ViewerPreferences, e.g. DisplayDocTitle -> true. I'm trying (from this question <fo:declarations> <pdf:dictionary type="Catalog" xmlns:pdf="http://xmlgraphics.apache/org/fop/extensions/pdf"> <pdf:dictionary type="normal" key="ViewerPreferences"> <pdf:entry key="DisplayDocTitle" type="boolean">true</pdf:entry> </pdf:dictionary> </pdf:dictionary> <x:xmpmeta xmlns:x="adobe:ns:meta/"> ... but getting Jul 13, 2016 11:18:31 AM org.apache.fop.events

Inserting a line break in a PDF generated from XSL FO using <xsl:value-of>

落花浮王杯 提交于 2019-12-17 13:44:29
问题 I am using XSL FO to generate a PDF file containing a table with information. One of these columns is a "Description" column. An example of a string that I am populating one of these Description fields with is as follows: This is an example Description.<br/>List item 1<br/>List item 2<br/>List item 3<br/>List item 4 Inside the table cell that corresponds to this Description, I would like the output to display as such: This is an example Description. List item 1 List item 2 List item 3 List

XSL for-each-group using two group-by parameters: first group by date then by name

风流意气都作罢 提交于 2019-12-14 03:59:33
问题 Hello I'm trying to create grouping in the pdf file and I have to use grouping inside another grouping. f.e. group by date, then group by name, then by city... xml: <record> <name>Palace1</name> <info> <date>2012-01-01</date> <city>Random1</city> </info> <info> <date>2012-01-01</date> <city>SuperRandom</city> </info> <info> <date>2012-01-02</date> <city>Random22</city> </info> ... </record> <record> <name>Palace2</name> <info> <date>2012-01-01</date> <city>Random99</city> </info> <info> <date

In <fo:table-column> what is the difference between the number-columns-spanned vs. number-columns-repeated attributes?

北城余情 提交于 2019-12-14 01:43:21
问题 Actually, using AHFormatter, if I have this: <fo:table-column column-number="2" number-columns-repeated="2" color="red"/> Then a table-cell in the 3rd column will have red text if I use from-table-column(): <fo:table-cell color="from-table-column()"> However, <fo:table-column column-number="2" number-columns-spanned="2" color="red"/> does not work this way, so maybe the real question is what does the number-columns-spanned attribute of <fo:table-column/> do, if anything? 回答1: The previously

How to show correctly tabulation in xsl-fo?

痴心易碎 提交于 2019-12-13 16:22:28
问题 I have an XML document and I am creating an XSL-FO file to convert it to pdf with apache-fop. In the xml, there are sections <code> to show... code. In the xsl-fo, I added the white-space="pre" sentence to preserve the code format, but tabulations are shown like single space: XML section: <code><![CDATA[ function callback( widget ) { var ui = widget; // It should be a tab } ]]></code> XSL-FO section: <xsl:template match="code"> <fo:block font-size="10pt" font-family="monospace" white-space=