xsl-fo

How to insert line breaks in a PDF generated with XSL-FO

我们两清 提交于 2019-12-21 20:36:26
问题 I am generating a PDF using XSL-FO and XML. In a textbox, the user can enter data like "1", then he presses ENTER, then "2", ENTER, "3", etc. But in the XML and hence in the PDF, the output is "1234567". How can I preserve the line breaks? I already tried white-space-collapse , linefeed-treatment and white-space-treatment but that didn't help. My XSL looks like: <xsl:template match="AddCmt"> <fo:block keep-together="always"> Additional Comments <fo:block-container border-style="solid" height=

Inline image data in XSL:FO / Apache FOP

我只是一个虾纸丫 提交于 2019-12-21 04:12:08
问题 I have MIME Multi-Part data that I want to convert to PDF using XSL:FO. I'm comfortable reading MIME using Apache James and I have a grasp on embedded image data in Mime or inline images in HTML. I diligently searched SO for "[xsl-fo] inline graphic" and "[xsl] +html +mime +image" and found somehow the opposite and a precurser what I'm up to. Also Google on "convert HTML MIME to XSL:FO" was inconclusive. What I want to do is having an element (or a set of elements) that render a graphic (JPG

Inline image data in XSL:FO / Apache FOP

让人想犯罪 __ 提交于 2019-12-21 04:10:02
问题 I have MIME Multi-Part data that I want to convert to PDF using XSL:FO. I'm comfortable reading MIME using Apache James and I have a grasp on embedded image data in Mime or inline images in HTML. I diligently searched SO for "[xsl-fo] inline graphic" and "[xsl] +html +mime +image" and found somehow the opposite and a precurser what I'm up to. Also Google on "convert HTML MIME to XSL:FO" was inconclusive. What I want to do is having an element (or a set of elements) that render a graphic (JPG

How to add header and footer for every pages in xsl-fo to generate pdf

我只是一个虾纸丫 提交于 2019-12-21 03:37:15
问题 please find the following xsl-fo , tried to set header and footer for every page in pdf, but got only header at first page and footer at last page. But here i needed for every page. How to perform this. <?xml version="1.0" encoding="UTF-8" ?> <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="my-page" page-height="29.7cm" page

XSL-FO: is XSL-FO dead technology and only used by niche companies? [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 01:48:06
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 months ago . I wanted to convert some xml to a magazine like pdf document. A lot like what LaTeX allows you to do however i was not able to find any new books or online tutorials on the subject. Is it worth investing in using this technology or not? Also, I looked at the Apache XSL-FO

Determining Last page position in xsl-fo

有些话、适合烂在心里 提交于 2019-12-20 07:35:55
问题 Can we somehow determine the position of the last-page in XSL-FO? If I want to place my footer only on the last page, then how it could be done? As Input data varies and is not static. So any number of pages can come depending on the data. 回答1: Hope, it's not too late. But anyway, for all interested people: Create a page master <fo:simple-page-master master-name="my-last-page">...</fo:simple-page-master> and put your footer as a "region-after" into that master. Add this to your repeatable

Remove whitespace/blank spaces in table columns XSL-FO

笑着哭i 提交于 2019-12-20 07:14:46
问题 The link has a table in a PDF generated using Apache-FOP. I am unable to remove the blank spaces/empty spaces in the table column headers and column values. The PDF has limitation of 120 characters and thus unable to display all the text. The application does supply the column width. But unsure how to use it in the xsl-fo file Please suggest how to define widths of the table columns to hold only the text and without any blank/unused spaces. 回答1: Use fo:table-column (see https://www.w3.org/TR

XSL-FO creating Dynamic Table Of Contents

两盒软妹~` 提交于 2019-12-20 04:22:25
问题 How we can create a table of contents page dynamically in XSL-FO? 回答1: What I've done in the past is use <fo:page-number-citation> for each entry in the TOC (Table of Contents). I do the table of contents as an <fo:table> . The <fo:page-number-citation> has a ref-id attribute that should contain the id of the location you're referencing. It should generate the PDF page number where that id is located. For example, if you wanted each <chapter> referenced in your TOC, you would use <fo:page

xsl:fo retrieve-marker not valid child

﹥>﹥吖頭↗ 提交于 2019-12-20 03:12:42
问题 I need for my xsl:fo transformation an <fo:retrieve-marker> in an table but I don't know if this is possible because I use FOP Processor for my transformation. If i use the <fo:retrieve-marker> in my table I always get an error message that the tag has to be in an static content. Here is the table with the marker <xsl:call-template name="MMEL-Table-Header"/> <!-- Bottom table Line --> <fo:table-footer> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="footer-continued"> <fo:inline>

Vertical alignment of text in a table cell

南笙酒味 提交于 2019-12-18 18:47:11
问题 I would like to align the text to bottom in the second cell. The first cell extends to 2 lines, because of insufficent width and that's OK But the text in the second cell is only one line and shows up at the top of the cell. How can I align it to bottom? I tried vertical-align="bottom" text-align="bottom" text-align="end" on row , cell and block levels.. Any of them worked?!? <fo:table font="normal 10 pt Arial, sans-serif" width="100%"> <fo:table-column column-width="40mm"/> <fo:table-column