fop

Emphasized text in docbook, fo, pdf out put.

I am trying to emphasize a character of some static text to render into the footer of my pdf, but can't figure out the right combination of tags in my xsl. How can I accomplish this? Example: <!-- Footer content --> <xsl:template name="footer.content"> <xsl:param name="pageclass" select="''"/> <xsl:param name="sequence" select="...

is there such a thing as xsl:fo reporting or xsl:fo simulation?

Hi, I am trying to determine if MY xsl:fo generated PDF file will exceed one page or not, without actually generating the output. We use Apache-FOP 0.95 on our server, and the XML data is being generated using a PHP DOMDocument class before being passed onto an XSL-FO template. My question: Are there PHP libraries out there that can s...

How to use barcode4j

I am using apache fop to generate the pdf .I am trying to integrate barcode into my pdf using barcode4j but it is not working.I have made following changes to the fop.bat set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;'D:\xmlfo\src\ac\barcode4j-2.0\build\barcode4j-fop-ext.jar' ...

PDFBox setting A5 page size

Started playing with PDFBox PDDocument document = new PDDocument(); PDPage page = new PDPage(); document.addPage( page ); PDFont font = PDType1Font.HELVETICA_BOLD; PDPageContentStream contentStream = new PDPageContentStream(document, page); contentStream.beginText(); contentStream.setFont( font, 12 ); contentStream.moveTextPositionByA...

PHP Java Bridge # calling FOP from PHP

Hello guys, I often check StackOverflow and help me so much usually :) so i guessed why don't ask for help on this one ? I'm using PHP on a web-based application and i need to use Apache FOP to generate a PDF from a pre-formatted FO file. ATM I'm using the command line exec('fop...') for this purpose, but i have several troubles when ch...

Loops in FOP fail

I'm trying to add some additional lines to a table in FOP, to fill them up to 13 rows with this code: <!-- Fill Up Empty space --> <c:forEach var="i" begin="${position_id}" end="13" step="1"> <fo:table-row height="4.4mm" border-bottom-color="black" border-bottom-style="fixed" border-bottom-width="0.2mm"> ...

How to create hyperlink within PDF (which is opened in browser) which will open in a new tab/window

Hi! I generate some PDF via XSLT transformation (FOP) from XML. The PDF file is opened in the browser. If it contains any hyperlink, that hyperlink is supposed to open in a new browser tab/window. I'm quite not sure if it is even possible. Any insights? ...

ApacheFOP - Blank PDF Output ?

I've been trying to transform my XML documents to PDF through Apache FOP, but the output pdf is blank. Any help to why this is occuring is greatly appreciated. The code seems to be executed without errors: C:\Users\dfh\Desktop\fop-0.20.5>fop -xml DICENTIA_SDC_SN_1_224860.xml -xsl testx sl.xsl -pdf test2.pdf [INFO] Using org.apache.xer...

Xslt - iterate nodes in chunks

I have an existing xslt script which creates a PDF with FOP, problem is that its running out of memory when doing apply-template on a specific nodetype when the node count exceeds a certain limit. In order to fix the memory issue I need to break up the result derived from that template call into several <fo:page-sequence>, but I dont wan...

How do I transform an XML-File into a FO-file using XSL?

I need to tranform a basic xml file into a FO file using xsl. The xml looks like this : <?xml version="1.0"?> <column-chart-stacked-full> <title>Provincie Antwerpen</title> <x-axis-title>Gasmeters</x-axis-title> <y-axis-title>Verbruik</y-axis-title> <clusters> <cluster number="1"> <bar> ...

Regarding external-document in FOP

Hi public, I am creating pdf file through the XML, XSL and FOP. I want PDF file contents to display external file contents such as word document. I know for displaying image in PDF we use but what tag we should to display file contents other than pdf file type. There's a FOP extension that claims to be able to do this: jeremias-maer...

XSL-FO processor for PHP : transform XML to PDF

I am looking for a PHP XSL-FO processor. What I need is an alternative to Apache FOP (in the Java world), in order to convert an XML document to PDF, but I need to execute it in a PHP environment without Java support. ...

In Apache FOP, how do I set the font base programmatically, and still have the fonts from <directory> loaded?

I'm using Apache FOP 1.0. The code is running on different servers, so I put the fonts in each server's instance root. My plan is to set the font base programmatically (to the server instance root, plus "/fonts/"), and in my fop configuration file, set font paths relative to this font base. Here's the code snippet that makes the FopFacto...

Apache FOP: zindex does not appear to be working in overlapping blocks

I am a FOP newb. I am trying to show text on top of an image by using block-container's and zindexes. The image is always on top though. If i remove the image, i can see the text, so the text is under the image. This is inside of a table cell. here is the relevant code: <fo:table-cell padding="0.000pt" text-align="left" display-align="...

generating HTML from XSL-FO using Java

I have some PDF files generated based on some XSL-FO documents and I now need this content in HTML too. I am using FOP for creating the PDF files but this does not support HTML as an output format. My question is this: Is there a Java library of some sort that can create HTML files based on XSL-FO documents, or can I do this with throwi...

Why does FOP take so long to send this document to the printer?

In our software, we use Apache FOP 0.20.5 (I know this is an old version, we can't update it as it's an old version of our software) to create "pretty" style reports. We have one in particular that I created by importing a PDF into InkScape then generating the XML of the SVG(s) from that. When sending this particular form to the printer...

Inserting JavaScript into a PDF file with FOP

Hello, Does anyone know how to add JavaScript to a PDF file with the Apache FOP framework? We are already generating PDF files from our application which are presented to the user. But in addition to that we want to include the option to automatically print the document when it opens. After a lot of googling the only useful site we f...

Using ApacheFOP v1.0 in .NET application

Has anyone successfully complied the Apache FOP v1.0 library to a .NET DLL? I am using the IKVM syntax found at http://onjava.com/pub/a/onjava/2004/08/18/ikvm.html; however, the compiled DLL seems to be incomplete. For example, I cannot instantiate FopFactory object as: using org.apache.fop.apps; namespace Utils { public class P...

PDF Generation Library for Java

Hi, I know this has been asked before, but I'm still undecided on which PDF generation framework to use for my current project. My requirements on-the-fly generation of PDF documents (mainly order forms, invoices) Java based easy to layout should be open source easy to change layout A lot of people seem to use iText, but I have so...