apache-fop

multiple columns in xsl-fo apache fop

Is it possible to make multi-column text as in newspaper in using Apache FOP? It is continuos flow of text and not a table with two columns. ...

Aligning an element to the right using XSL-FO, Apache FOP

Hi, I'm using XSL-FO with Apache FOP to take a sexy looking XML file and output it as a PDF, however I'm having a really basic problem trying to get a particular bit of information (the address) to be positioned from the right of the page, I can force it over to the right by increasing the left attribute, but if I change my page size, or...

Resolve relative paths when loading XSLT files

I've updated the question below Hello, I need to do a XSL transformation using Apache FOP and I have a code like this one: //Setup FOP Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out); //Setup Transformer Source xsltSrc = new StreamSource(new File(xslPath)); Transformer transformer = tFactory.newTransform...

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...

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...

Debugging Apache fop

How to debug xsl-fo layout I have a table, blocks and one image that is 1mm too far from the outer egde of all this. <fo:table-row xsl:use-attribute-sets="blue-border"> <fo:table-cell > <fo:block id="logo" xsl:use-attribute-sets="red-border"> <fo:external-graphic src="url('{$headerLogoPath}')" width="100%" cont...

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...

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...

Generating output from XML and CSS with docbook - working for HTML, failing for PDF

Hello. Starting from a series of xml files and a stylesheet I generate a HTML file using docbook-xsl-ns-1.73, libxslt-1.1.22.win32 and fop-0.94. the stylesheet says that code chunks must have numbered lines and a gray background. here is the piece of the and task that converts xmls to html: <exec executable="${XSLTPROC_EXECUTABLE}"> ...