apache-fop

FOP with IKVM: No Images

时光怂恿深爱的人放手 提交于 2019-12-25 04:07:20
问题 I've successfully compiled and used FOP 1.0 with IKVM 0.44.5 in .NET, however I can't get it to show any images in the resulting PDF. When I run FOP via ikvm in the command-line, I get a java.io.EOFException. When I transform the same file using java, the Images shows up perfectly. java.lang.reflect.UndeclaredThrowableException at $Proxy0.readUTF(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:612) at org.apache.xmlgraphics.image.loader.util.ImageUtil$1.invoke(ImageUtil.java

How do I display output variable text in XSL

≯℡__Kan透↙ 提交于 2019-12-25 02:27:14
问题 I am using xsl:fo to generate a pdf using apache FOP, when I have come across the following issue: <fo:table-cell xsl:use-attribute-sets="btInfo mt10pt mb10pt"> <fo:block text-align="left" linefeed-treatment="preserve"> <xsl:text disable-output-escaping="yes"><xsl:value-of select="BankDetails" /> </xsl:text> </fo:block> </fo:table-cell> where bankDetails is a variable which contains entire paragraph of text with html tags. When I print it as is,it displays html tags literally(such as <p>, <br

XSL FOP Kannada font not appearing properly

落爺英雄遲暮 提交于 2019-12-25 00:28:43
问题 I have configured TrueType file in configuration file like this <fop version="1.0"> <renderers> <renderer mime="application/pdf"> <fonts> <font embed-url="Nudi_05_k.ttf" kerning="yes"> <font-triplet name="kannada" style="normal" weight="normal" /> </font> <!-- <font embed-url="Nudi_05_k.ttf" kerning="yes" sub-font="kannada"> <font-triplet name="kannada" style="normal" weight="normal" /> </font> --> </fonts> </renderer> </renderers> It has to be displayed in the format as ಪ.ಪೂ.ಶಿ/ಪ್ರ.ಅ/99-2000

grails 2.3 java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SVGOMDocument

牧云@^-^@ 提交于 2019-12-24 14:31:10
问题 When i run my grails application in tomcat i get the following error java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SVGOMDocument . But the batik-svg-dom.1.7.jar is packaged in the war and in the classpath. I don't however get this error when i am running the application in debug mode in STS. I am using Grails 2.3 and building my war using maven. I am using FOP and have excluded the "xml-apis". I have tried to place the batik-svg-dom.jar in the lib folder of tomcat, that did not

pypfop 0.2.0 and environment variable FOP_CMD

 ̄綄美尐妖づ 提交于 2019-12-24 12:53:00
问题 I'm trying to get working pypfop 0.2.0 with this tutorial. Unfortunately I'm not able to pass through step 2.2: Decompress in wherever place you like and set environment variable FOP_CMD to the bin/fop of the decompressed folder. Links seem broken so I downloaded binary package from here but suppose it doesn't matter. However, if I decompress the package no path bin/fop is presneted. My current FOP_CMD setup (I've decompressed fop package into ~/utils ): $ echo $FOP_CMD ~/utils/fop-1.1 Now I

Indic font support in Apache FOP

情到浓时终转凉″ 提交于 2019-12-24 11:24:37
问题 While using Apache FOP 2.2 from my Java application to print Hindi strings in PDF by using mangal.ttf, some Hindi characters are not displayed correctly. I am Using JDK 1.8 and spring MVC. I tried lohit.ttf, devanagari.ttf, aparajita.ttf and kokila.ttf but all have the same issue. case 1: When fop-conf.xml is set as below: <font kerning="yes" embed-url="classpath:/mangal.ttf" > <font-triplet name="Mangal" style="normal" weight="normal"></font-triplet> </font> Result: से is shown like this स े

Infinite scan for fonts in Apache FOP on CentOS

不想你离开。 提交于 2019-12-24 07:16:07
问题 I use Apache Batik to convert SVG into PDF in one of the projects. The project is Spring application running in Tomcat 7. Everything works OK on development machine which runs under Ubuntu with Tomcat being started using $CATALINA_HOME/bin/startup.sh. But when I try to run the app on production server with CentOS 6 and Tomcat started using service tomcat7 start command the app falls into infinite loop on convertation. I've tried to debug the problem and found this piece of code: /** * Creates

How to mention namespace in XSLT file when the namespaces are dynamic?

こ雲淡風輕ζ 提交于 2019-12-24 03:55:22
问题 I have a requirement to store XML data in DB and after that retrieve xml from DB and convert to PDF. For that I am using XSLT with Apache FOP. The below code is working fine with current namespaces in the XML file(I have copied and pasted the namespaces from Books.xml file to Books.xsl . The Problem is whenever the WebService is updated if the namespace of Books.xml file is changed then my Books.xsl file with old namespaces is giving exception while generating PDF using Apache FOP. Note : If

Can't generate PDF with Apache FOP

眉间皱痕 提交于 2019-12-24 03:41:31
问题 I am trying to use Apache FOP to create a PDF using XML data and a XSL stylesheet but I keep getting the following error org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException: "{http://www.w3.org/1999/XSL/Format}block" is not a valid child of "fo:root"! (No context info available) javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "{http://www.w3.org/1999/XSL/Format}block" is not a valid child of "fo:root"! (No context info available) The

Placing letters under underlined text in XSL-FO using Apache FOP

左心房为你撑大大i 提交于 2019-12-23 21:27:00
问题 I have a project that requires me to place a ID string under some underlined text in a passage of text. Here is an example using an inline SVG object with a gray border to show the layout: I can get close using an inline element with a baseline-shift and then use SVG to render the text. However this has the disadvantage (I think) that I have to manually put in the width of the SVG in pixels, which seems very complicated for such a simple layout. Here is the XSL-FO markup for this: <fo:block>