Apache FOP is a document rendering engine that implements the W3C XSL-FO 1.1 Specification.
Questions tagged [apache-fop]
1304 questions
12
votes
1 answer
how to keep table with header but allow page breaks inside table body in XSL-FO using FOP
I'm generating a PDF using Apache FOP and a XSL-FO stylesheet. In the PDF, I output headings (html equiv h1) which belong to a table, so should be kept together always. However, my tables may also contain so much data that they don't necessarily fit…

Jens Wegar
- 4,147
- 4
- 29
- 34
12
votes
6 answers
XSL-FO fop. Long text flows into adjacent cells/block, obscuring stuff there
Could anyone suggest me a way to make long words (like serial numbers) to be wrapped? I tried some commercial software and there is no such issue. Is it a fop bug or probably there is a solution available?
I can't insert zero length space after each…

Alex
- 121
- 1
- 1
- 3
11
votes
3 answers
Rotated text in table cell rendered above cell not within
I have the following template to generate a table defined:
…

Torbjörn
- 5,512
- 7
- 46
- 73
11
votes
3 answers
FOP: how to specify image src relative path?
This is my first question here, i hope i'm doing it right. Sorry for my bad English in advance :)
I am using JSF 2.0 (Eclipse IDE) and i'm trying to generate some PDF files using Apache FOP 1.0.
I was able to make simple PDF files using instructions…

Nikola
- 283
- 2
- 4
- 11
10
votes
3 answers
FOP: fo:block width attribute ignored?
I'm managing to generate a PDF with one line-chart from google-chart, but the quality of the generated columns titles doesn't fit our needs, so I want to generate by myself.
This task should be done using [fo:table] but I'm not able to positionate…

ATorras
- 4,073
- 2
- 32
- 39
10
votes
6 answers
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…

Clay Benoit
- 223
- 1
- 2
- 11
10
votes
5 answers
Convert Word document to XSL-FO
I am using Microsoft Word 2007. I would like to convert the Word document to XSL-FO. There are some hints on the net, but only for RenderX. Is there such a tool for Apache FOP?

Thunder
- 10,366
- 25
- 84
- 114
10
votes
2 answers
PDF report with embedded HTML
We have a Java-based system that reads data from a database, merges individual data fields with preset XSL-FO tags and converts the result to PDF with Apache FOP.
In XSL-FO format it looks like this:

PM 77-1
- 12,933
- 21
- 68
- 111
10
votes
2 answers
Does xslt-fo not support utf-8?
I have an xml file in utf-8 with an encoding attribute.
When I execute fop -xml xml.xml -xsl xsl.xsl -pdf pdf.pdf, my output pdf has broken utf-8 characters. What is important, the text from xsl file is without utf-8 characters, same as the text…

user3050705
- 457
- 1
- 5
- 13
10
votes
1 answer
FOP XSL-FO Anchor in an external destination
With XSL-FO (Fop), I succeeded in creating a link to an external PDF :
foo.pdf
But now, I would like to reach an anchor in this…

Johann
- 447
- 2
- 8
- 23
10
votes
4 answers
Is there an alternative to "keep-together='always'" on table-row?
Upon finding the "keep-together" attribute, and needing to not page break inside a row I added keep-together="always" on every table-row element in my xslt.
Is there a nicer way of achieving the same effect? It seems a bit hacky.
(ps. I will accept…

Sean
- 696
- 2
- 9
- 24
9
votes
1 answer
NPE from sun.awt.FontConfiguration.getVersion using Apache FOP JDK 11 on Linux system
I am using Apache FOP (v 2.3 and with testing v 2.5). I have recently upgraded from Oracle JDK 8 to Oracle JDK 11. I am using JBoss EAP 7.2 on Oracle Linux (which is RedHat derivative). Everything works fine when using JDK 8, but just the upgrade to…

javafreak
- 301
- 1
- 3
- 9
9
votes
1 answer
FOP for Android?
I recently compiled an Android app using FOP as I want to convert some XML into a PDF file. However I don't think the FOP JAR files are mean't to work on Android. Are there any versions of FOP available for Android? Or any other XML to PDF converter…

Zac
- 2,325
- 3
- 23
- 33
9
votes
2 answers
Set FopFactoryBuilder baseURI to jar classpath
I'm upgrading an Apache FOP 1.0 project to Apache FOP 2.1. In this project, all necessary files are packaged within the jar file.
I've added the new FopFactoryBuilder to generate a FopFactory
FopFactoryBuilder builder = new FopFactoryBuilder(new…

sbo
- 951
- 2
- 12
- 25
9
votes
2 answers
xsl:fo inline line wrap and line break
I'm struggling with my xsl:fo (Apache Fop 1.1).
I'm trying to generate a Block with inline images and inline text elements which might contain newline characters.
First Line
Second Line, Image:
…

Kai
- 871
- 2
- 18
- 39