[Apache FOP] tiff output is blurred.
Michael Uplawski <[email protected]> Tue, 16 Jun 2026 09:31:56 +0200
| Newsgroups | comp.text.pdf,comp.text.xml |
|---|---|
| Organization | mediocre |
| Message-ID | <[email protected]> |
Good morning
I want to use Apache FOP to create TIFF from XML (via FO). The
objective is to transform these TIFFs to PDF and thus create
machine-unreadable documents.
The command in question is thus:
----------
fop -c ~/bin/fop-2.11/fop/conf/fop.xconf -fo "infile.fo" -tiff "/tmp/out.tif"
---------
The Tiff renderer is configured like this:
-----------
<renderer mime="image/tiff">
<rendering>quality</rendering>
<anti-aliasing>true</anti-aliasing>
<compression>NONE</compression>
<source-resolution>600</source-resolution>
<target-resolution>600</target-resolution>
<!--transparent-page-background>true</transparent-page-background-->
<!--compression>CCITT T.6</compression-->
</renderer>
------------
I am unable to manipulate the resolution of the resulting TIFF,
text is still blurred, irrespective of my settings.
My workaround is for the time to create PDF from FO, then to use the
Ghostscript and the LIBTiff tools to transform the PDF to tiff and
back to PDF. This way both versions of the PDF are equally readable,
only file sizes differ.
I would like to know if – once the resolution problems solved – fop
produces smaller tiff files.
Do you have any hints?
Cheerio
f'up comp.text.pdf