Re: pdf file not closed in case of invalid fo / fop Trunk

2012-05-29 Thread Alexios Giotis
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

"fo:external-graphic" inside a "fo:block" - Unexpected margins

2012-05-29 Thread Léa Massiot
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

"fo:external-graphic" inside a "fo:block" - Unexpected margins

2012-05-29 Thread Léa Massiot
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

Re: "fo:external-graphic" inside a "fo:block" - Unexpected margins

2012-05-29 Thread Pascal Sancho
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-

Re: pdf file not closed in case of invalid fo / fop Trunk

2012-05-29 Thread Christian Pestel
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

Offending font: /Helvetica with PDF/A and SVG image

2012-05-29 Thread Christian Pestel
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";

position not a breakpoint

2012-05-29 Thread Rob Sargent
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