Hi Jose,

The ERROR message is the key here, it's indicative of an absence of an
image loader for PDFs. You need to have the FOP-pdf-images JAR to your
class path, you can get the JAR from this link
http://www.jeremias-maerki.ch/download/fop/pdf-images/ and to put it
in your class path, the easiest way would be to drop the jar in your
lib/ folder.

Hope that helps

Mehdi

On 17 June 2011 04:16, JOSE L MARTINEZ-AVIAL <[email protected]> wrote:
> Hi,
>   I'm using FOP 0.95 to add an address cover to a PDF I receive. I'm doign
> this:
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>    <xsl:call-template name="letter-layout-portrait"/>
>    <xsl:call-template name="address"/>
>    <fox:external-document content-type="pdf" src="prueba.pdf"/>
> </fo:root>
>
> The document is composed, but the external file is not added, and I see the
> following lines in the log
>
> 2011-06-16 23:11:16,099 DEBUG
> org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext  -
> Creating new Source for prueba.pdf
> 2011-06-16 23:11:16,115 DEBUG
> org.apache.fop.image.loader.batik.PreloaderSVG  - Error while trying to load
> stream as an SVG file: Content is not allowed in prolog.
> 2011-06-16 23:11:16,115 DEBUG
> org.apache.fop.image.loader.batik.PreloaderSVG  - Error while trying to load
> stream as an SVG file: Content is not allowed in prolog.
> 2011-06-16 23:11:16,193 ERROR org.apache.fop.apps.FOUserAgent  - Image not
> available. URI: prueba.pdf. Reason:
> org.apache.xmlgraphics.image.loader.ImageException: The file format is not
> supported. No ImagePreloader found for prueba.pdf (No context info
> available)
>
> The contentype is set to pdf, so I don't why FOP is trying to read it as a
> SVG. Any ideas?
>
> Thanks
>
> Jose
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to