apache-fop

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

Apache FOP 1.0 Multithreading - Too many open files err24

两盒软妹~` 提交于 2020-01-05 07:48:31
问题 We use Apache FOP to convert a whole lot of XML's to AFP's and PDF's. Our current load would be around 25k files per run on a HP-UX system. We have 8 threads in total that are used to initialize and trigger the FOP conversion in a producer-consumer fashion. Recently there have been multiple failures during conversion and when looked up, we've received generic FOP errors like: **ERROR,2460364,FOToPDF_Thread_11,FOP Exception, something.pdf,Failed to resolve font with embed-url './Fonts/arial

Apache FOP 1.0 Multithreading - Too many open files err24

末鹿安然 提交于 2020-01-05 07:47:53
问题 We use Apache FOP to convert a whole lot of XML's to AFP's and PDF's. Our current load would be around 25k files per run on a HP-UX system. We have 8 threads in total that are used to initialize and trigger the FOP conversion in a producer-consumer fashion. Recently there have been multiple failures during conversion and when looked up, we've received generic FOP errors like: **ERROR,2460364,FOToPDF_Thread_11,FOP Exception, something.pdf,Failed to resolve font with embed-url './Fonts/arial

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

Apache FOP: How to set base URL for accessing external resource using relative path

痞子三分冷 提交于 2020-01-02 21:59:35
问题 In my .xsl file I am using external graphics like this <fo:external-graphic width="90pt" height="29pt" src="url(xsl/logo.jpg)"/> But image is not getting loaded in the generated PDF and I get this error in console. [ERROR] Error while creating area : Error with image URL: xsl\logo.jpg (The system cannotfind the path specified) and no base URL is specified How do I solve this issue? I guess setting the base URL will do. But how to set the base URL? Please help. 回答1: I got a solution from this

Adding Annotation to Apache Fop

妖精的绣舞 提交于 2020-01-02 03:31:24
问题 I am rendering a PDF using Apache Fop . I am making XSLT templates which I used to convert xml to PDF. I want to put annotation in the output PDF using Apache Fop . I have been searching and it says iText has support for adding annotation to pdf. Is it possible to add annotation in Apache Fop? 回答1: iText DOES have support for adding annotations to PDF documents. We use that in our products. You can do the following: Use an existing PDF, for example one that has been created with Apache FOP.

fixed: Multiple page-sequence objects

自闭症网瘾萝莉.ら 提交于 2020-01-01 19:27:01
问题 When working with big xml files fop breaks down due to the lack of ram(1.7gb in my case, is the limit), so one of the ways to fix this is to use multiple page sequence objects as described here . However the are no description how to use them... And what I tried to do is to "create" a new page sequence objects using for-each, but it seems that I have failed and fob breaks down when it reaches 1.7gb of ram anyways <xsl:template match="OurForm"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL