xsl-fo

How to position a block at the bottom in the region-body

时间秒杀一切 提交于 2019-12-11 03:00:27
问题 I'm generating an invoice PDF and i want to have the block with the VAT Summary positioned at the bottom of the region-body I read (almost) all the ibex and the more general xsl-fo documentation and the closest i got was to learn how to absolutely position elements in the page; But that does not suit my needs because i may have many lines with variable size and the absolutely-positioned element may overlap the lines. I am using ibex xsl-fo generator. EDIT: Some sample code The full xsl-fo

How to place content at the bottom of the last page of my document

别来无恙 提交于 2019-12-11 02:35:56
问题 I've got a document that has some content (a table containing one or more addresses) at the bottom of the last page. Until now, the table was of a standard size, so I could insert the table in a footer and attach that footer to the last page: <fo:page-sequence-master master-name="leaflet"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference page-position="first" master-reference="page_first_leaflet"/> <fo:conditional-page-master-reference page-position="last" master

XSL-FO: place text on odd pages only, skip even pages

China☆狼群 提交于 2019-12-11 01:43:55
问题 I have a document where I want to place text on the odd pages, and an accompanying drawing on the even pages. My page definitions look like this: <fo:simple-page-master master-name="page_even" page-height="210mm" page-width="297mm" margin="{$page-margin}"> <fo:region-body region-name="body" margin-top="190mm" margin-bottom="20mm" margin-left="200mm" margin-right="97mm"/> <fo:region-before region-name="header-even" extent="190mm" precedence="true"/> <fo:region-after region-name="footer-even"

Muenchian Grouping with XSL-FO Table

邮差的信 提交于 2019-12-11 01:09:59
问题 I've been working with producing simple PDFs with XSL-FO in RenderX XEP for a while, but I'm relatively new to the more involved functions of XPath. I have some XML which looks like this: <?xml version="1.0" encoding="UTF-8"?> <report> <ticket> <size>A</size> <department>Dept 1</department> <category>Cat 1</category> <product>Product 1</product> </ticket> <ticket> <size>A</size> <department>Dept 1</department> <category>Cat 2</category> <product>Product 2</product> </ticket> <ticket> <size>B<

how to adjust table cells properly in xsl

。_饼干妹妹 提交于 2019-12-10 18:18:21
问题 I am trying to put my XML data into a tabular format using xsl(FOP) but it could not be done completely as the cells are overlapping when there is no text in cell. Here is my xsl code: <?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output encoding="iso-8859-1" /> <xsl:template match ="records"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="list"> <fo

Inserting a base64 encoded image into xsl-fo file while using apache-poi

淺唱寂寞╮ 提交于 2019-12-10 14:31:30
问题 I am using Apache POI to convert .doc to .fo using the WordToFoConverter class, I have converted the images in the word file to base64, but how do i append it to the xsl-fo code generated by apache-poi? Consider the sample fo file generated by Apache-POI- <?xml version="1.0" encoding="UTF-8" standalone="no"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="page-page0" page-height="11.0in" page-width="8.5in"> <fo:region-body

XSL-FO Processor for C/C++

安稳与你 提交于 2019-12-10 14:16:37
问题 Does anyone know about the processor for XSL-FO based on C/C++ for Windows XP and for free? My product is based on c++ and I don't want to use Apache's FOP so that I don't have to bundle JVM with my product. I could find commercial ones but I need a free one. Someone can help me with this. 回答1: Have a look at http://xmlroff.org/ - it's C and available for free. 回答2: If xmlroof not prove good enough, check this: http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/invocation.html to see how to

Splitting a particular column with a simple horizontal line

大兔子大兔子 提交于 2019-12-10 12:07:13
问题 I am trying to split a particular column with a simple horizontal line . <fo:table> <fo:table-body> <fo:table-row> <fo:table-cell border-color="white" padding-top="5px" padding-bottom="5px"> <fo:block> <xsl:choose> <xsl:when test=> <fo:block border-bottom-width="0.1mm" border-bottom-style="solid" border-bottom-color="black" font-weight="bold"> First I tried to make another table in a column for splitting of data but its not working. border-bottom inside <fo:block > is also not helping . The

reduce size of PDF generated with FOP

佐手、 提交于 2019-12-10 11:44:50
问题 I have unsuccessfully browsed this site (that has so often saved my life in the past) and the web for an answer to this question: I use Java, XSL-FO and FOP to generate PDFs that consist in one or more pages of data and images, each page having a header and a footer containing images themselves. These header and footer are repeated on each and every page of the PDF documents. The images are responsible for a large part of the size of the resulting PDF (about 50 %). I noticed that, by

Chapter numbering in XSL-FO

你。 提交于 2019-12-10 10:57:37
问题 I have xml of the form: Chapter 1 Chapter 1.1 Chapter 1.1.1 Chapter 1.2 <CHAPTER> <LONG-NAME>Chapter 2</LONG-NAME> <CHAPTER> <LONG-NAME>Chapter 2.1</LONG-NAME> </CHAPTER> <CHAPTER> <LONG-NAME>Chapter 2.2</LONG-NAME> </CHAPTER> </CHAPTER> </REPORT-BODY> there can be any number of chapters inside one chapter. how to write xsl-fo to get the out pdf as below: 1. Chapter 1 1.1 chapter 1.1 1.1.1 Chapter 1.1.1 1.2 Chapter 1.2 2.Chapter 2 2.1 Chapter 2.1 2.2 Chapter 2.2 i tried using: <xsl:template