Apache FOP is a document rendering engine that implements the W3C XSL-FO 1.1 Specification.
Questions tagged [apache-fop]
1304 questions
9
votes
1 answer
Apache FOP Displaying ### with SimSun
I am maintaining a program which uses the Apache FOP for printing PDF documents. There have been a couple complaints about the Chinese characters coming up as "####". I have found an existing thread out there about this problem and done some…

user3826668
- 145
- 1
- 2
- 8
9
votes
1 answer
Load a font from JAR for FOP
I have a TTF font in fonts directory in the JAR with my application.
myapp.jar /
fop /
config.xml
font.ttf
I create my FOP this way:
FopFactory fopFactory = FopFactory.newInstance();
…

Luce Ian
- 237
- 1
- 3
- 9
8
votes
5 answers
Do Design patterns in Object Oriented Programming signal systemic problems of the paradigm of OO?
Possible Duplicate:
Are design patterns really language weaknesses?
After spending years pouring over books on OOP and the techniques of OOP, and recently getting involved more and more in Functional Styles of programming, would it be fair to…

WeNeedAnswers
- 4,620
- 2
- 32
- 47
8
votes
1 answer
How to load Fop configuration file to FopFactory
I'm generating PDF file from xml and xsl-fo using Fop-2.1 and spent a lot of time to configure fop configuration file(I'm using cyrillic fonts), in according with https://xmlgraphics.apache.org/fop/2.1/configuration.html
tested it within…

guesswho
- 462
- 4
- 12
8
votes
2 answers
How to set the default language in Apache FOP
I'm generating PDF files using Apache FOP 2.1.
For this I am trying to set the default language to be English.
This is supposed to be verified after the creation of the PDF via Adobe Reader's option File/Properties/Advanced/Reading Options. This…

Dimitris
- 3,975
- 5
- 25
- 27
8
votes
1 answer
Protecting PDF's
I am currently using the Apache FOP library to generate PDF's. I want these PDF's protected from copy-pasting, so people would have to use actual OCR libraries (or manual typing) to get the information on the PDF.
FOP apparently offers some…

Kristof
- 1,684
- 2
- 23
- 49
8
votes
3 answers
Access file in WebContent folder from a servlet
I'm trying to generate a PDF document using FOP. The pdf generation code is kept in a servlet and the xsl is in a specific folder in the WebContent folder.
How can I access this xsl file by giving a relative path? It works only if I give the…

jobinbasani
- 2,075
- 6
- 47
- 66
8
votes
3 answers
XSL:FO, Floats in F.O.P
A while ago I found out that FOP doesn't allow you to use floats, and a few other features in Xsl-Fo 1.0. I've tried a few different ways to emulate them, but I have had no success. If anyone has had success in this, or has an idea. I would really…

Meiscooldude
- 3,671
- 5
- 27
- 30
7
votes
5 answers
FOP/ikvm: error "Provider com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl not found"
I have produced a fop.dll from fop-1.0 with ikvm:
ikvmc -target:library -reference:IKVM.OpenJDK.Core.dll -recurse:{myPathToJars}\*.jar -version:1.0 -out:{myPathToJars}\fop.dll
If I use my fop.dll in a Windows Application, everything works…

jahuer1
- 377
- 4
- 15
7
votes
1 answer
"Content is not allowed in prolog" error yet nothing before XML declaration
First of all I have already exhaustively checked the following questions and this issue does not seem to be the same thing:
SAXParseException: Content is not allowed in prolog
org.xml.sax.SAXParseException: Content is not allowed in prolog
“Content…

user9645
- 6,286
- 6
- 29
- 43
7
votes
1 answer
Configure Batik to utilize custom fonts
I have an issue configuring Batik PDFTranscoder for Svg to Pdf conversion.
I want to embed custom truetype fonts to PDF output, therefore I utilize Batik transcoder. I supply font configuration in fop config file, as described here:…

odoko
- 121
- 1
- 4
7
votes
1 answer
How do I create an alias for a .jar command-line script?
I've got a jar file that can be run from the command line like this:
# In Terminal.app
java -jar fop.jar /path/to/infile.fo /path/to/outfile.pdf
At the moment for this to work I need to navigate to the folder containing fop.jar. This isn't ideal,…

Paul Patterson
- 6,840
- 3
- 42
- 56
7
votes
1 answer
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…

mkoryak
- 57,086
- 61
- 201
- 257
7
votes
3 answers
Apache FOP | custom fonts | relative URL not working
I have got configuration file to load custom fonts for Apache FOP. I am struggling to configure embed-url on server so that font url changes as per server domain.
I have tried embed-url property value as:
Non working…

Rupesh
- 2,627
- 1
- 28
- 42
7
votes
4 answers
How can I disable the strerr logging output from FOP?
How would I disable the logging output (usually sent to stderr) that FOP automatically generates when processing an FO file?
I've tried putting a log4j.properties file in the classpath, changing the log-level for org.apache.fop but this hasn't…

Phillip B Oldham
- 18,807
- 20
- 94
- 134