xsl-fo

Need instream-foreign-object and text to both align to the bottom in XSL-FO

≡放荡痞女 提交于 2020-02-25 11:53:21
问题 I have an XSL-FO stylesheet that is used for generating a barcode with a piece of description text immediately after it. When I run it through the Ibex FO application, the text properly lines up with the bottom of the barcode. When I run it through Apache FOP (it's an older version 0.3x... I CAN'T change this), the text lines up with the TOP of the barcode (I need it to work the same in both). I'm really hoping there is some workaround here. This is what I have: <xsl:template match="barcode">

Need instream-foreign-object and text to both align to the bottom in XSL-FO

别说谁变了你拦得住时间么 提交于 2020-02-25 11:53:13
问题 I have an XSL-FO stylesheet that is used for generating a barcode with a piece of description text immediately after it. When I run it through the Ibex FO application, the text properly lines up with the bottom of the barcode. When I run it through Apache FOP (it's an older version 0.3x... I CAN'T change this), the text lines up with the TOP of the barcode (I need it to work the same in both). I'm really hoping there is some workaround here. This is what I have: <xsl:template match="barcode">

How to embed external pdf/txt file into another using XSL-FO?

大兔子大兔子 提交于 2020-01-13 02:47:09
问题 Is it possible to embed an external PDF or TEXT document into a master PDF by using XSL-FO/XSLT? I have xslt stylesheet to produce PDF documents. But, the input XML contains inlined TEXT or Base64 encoded PDF documents. So what I do in my HTML version of my stylesheet I extract the TEXT or PDF and dump it on disk. Then in the xslt I have this: <xsl:when test='(n1:text/@mediaType="application/pdf") or (n1:text/@representation="B64")'> <IFRAME name='documentFrame' id='documentFrame' WIDTH='100%

How to detect the last page of the document?

本秂侑毒 提交于 2020-01-10 04:31:05
问题 I create pdf files from xml files with FOP. I would like to display something on the last page of the pdf. The thing is I can not know how many pages are needed to display the content so how can I know I am on the actual last page? (each page-sequence can generate 1+ document pages according to the size of the content) Thanks. 回答1: You can specify conditional page masters for general page layout and headers and footers (fo:static-content): http://www.w3.org/TR/xsl/#page-position Usage: 1.) In

Grouping by column row values in xsl:fo table

别等时光非礼了梦想. 提交于 2020-01-06 05:23:08
问题 I am trying to group values of individual column in xsl fo:table, some values not grouped as expected, it get grouped according to previous column's grouped value, i need individual grouping in columns, check with my xsl and xml file, i am using these files to generate PDF file using apache FOP. My XSL File <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fo="http://www.w3.org/1999/XSL

XSL-FO: how to add “helvetica neue” fonts and output to pdf

情到浓时终转凉″ 提交于 2020-01-05 09:37:48
问题 Am I correct that it's not possible to use fonts from windows 7 c:\windows\fonts* when using XSL-FO (Apache FOP) to generate a pdf? I've just installed the "helvetica neue" font in OTF format. According to https://xmlgraphics.apache.org/fop/trunk/fonts.html "Support for system fonts relies on the Java AWT subsystem for font metric information. Through operating system registration, the AWT subsystem knows what fonts are available on the system, and the font metrics for each one. When working

Need to dynamically change the simple-page-master's master-name

主宰稳场 提交于 2020-01-05 07:05:34
问题 I have an xml document as shown below. Each repeating doc is a page in PDF file <AFPXMLFile> <docs> <regList> <region>1</region> <secList> <col>1</col> <lines></lines> </secList> </regList> <regList> <region>2</region> <secList> <col>2</col> <lines> <line>IBM BELGIUM xxx</line> <line>xxxxxx</line> <line>xxxx</line> </lines> </secList> </regList> <regList></regList> <regList></regList> </docs> <docs></docs> </AFPXMLFile> My XSL is as follows: <?xml version="1.0" encoding="UTF-8"?> <xsl

XSL-FO table center

只谈情不闲聊 提交于 2020-01-03 15:40:10
问题 currently I am working on the XSL-FO for generating the PDF files. Infact I am directly writing the FO object instead of separating the XML and XSL. That is our requirement currently. We are able to align the text properly. But, when we are making the table, while keeping it in center not showing the complete table. What could be the problem. Here I am posting the code I have tried: <fo:block> <fo:table width="80%" border-style="solid" border-width="1pt" border-color="#69468D" table-layout=

Rotated text in table cell rendered above cell not within

你说的曾经没有我的故事 提交于 2020-01-03 07:23:13
问题 I have the following template to generate a table defined: <xsl:template name="CreateTable"> <fo:block> <fo:table border-style="solid" table-layout="fixed"> <fo:table-body> <fo:table-row> <xsl:for-each select="Table/Head/Cell"> <fo:table-cell border-style="solid"> <fo:block><xsl:value-of select="." /></fo:block> </fo:table-cell> </xsl:for-each> </fo:table-row> <xsl:for-each select="Table/Row"> <fo:table-row> <xsl:for-each select="Cell"> <fo:table-cell border-style="solid"> <fo:block><xsl

How to use position absolute in apache-fo

强颜欢笑 提交于 2020-01-02 22:03:27
问题 I am having problem in apache-fo, In General HTML & CSS if we give position:absolute to a div, it will take from its parent Top and Left, But Same thing if I give position: absolute to a particular block container in Apache FO, it taking from the Page Top & Left. For Example: <fo:flow flow-name="xsl-region-body"> [I want this type of scenario][1] <fo:block-container width="100%" color="rgb(0, 0, 0)"> <fo:block> <fo:block-container> <fo:block-container width="50%" left="1in" top="1in" position