Hi Christian,
I assume you are using FOP embedded in a java application. In this case, FOP
public API takes as an argument an output stream to write the specified output
format, for example, see [1]. Make sure that the output stream is closed by
your code, when an exception is thrown, as in the
Hello and thank you for reading my post.
When I put a "fo:external-graphic" inside a "fo:block" (cf. the XSL-FO
stylesheet below and the resulting PDF document attached), I get:
- an extra (red) margin above the image,
- an extra (red) margin below the image (bigger than the previous),
- no extra
Hello and thank you for reading my post.
When I put a "fo:external-graphic" inside a "fo:block" (cf. the XSL-FO
stylesheet and an image of an excerpt of the resulting PDF document attached
below), I get:
- an extra (red) margin above the image,
- an extra (red) margin below the image (bigger than
Hi,
extra spaces before and after the image are half leading (above and
below text). They are due to font-size and line-height properties.
If your fo:block doesn't contain any text, you can set them to 0.
Since the line-height property is defaulting to 1.2 (IOW, computed value
is 1.2 * font-
Hi Alexis,
Thank you for your detailed answer.
It's work fine with out.close(); in finally section.
Christian Pestel
christian.pes...@orange.fr
-Message d'origine-
From: Alexios Giotis
Sent: Tuesday, May 29, 2012 12:29 PM
To: Christian Pestel
Cc: fop-users
Subject: Re: pdf file not
Hi Developpers,
I have this fop error with PDF/A and SVG image :
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even the
base 14 fonts, have to be embedded! Offending font: /Helvetica
no problem with an .JPG image
Here is my fo file :
http://www.w3.org/1999/XSL/Format";
Using FOP-1.0, I've recently started seeing this exception and I'm
looking for clues on the root cause.
Caused by: java.lang.UnsupportedOperationException: Don't know how
to restart at positionSpaceHandlingPosition
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBr