fop .95 PDF generation issue with IE 6 (working fine in IE7)

2011-06-16 Thread Chetan Shirol
I am facing one problem with fop .95 jar - some time PDF gets generated properly
in the popup screen and some times it is getting corrupted (shows some text as
- %PDF-1.4 %ª«¬­ 4 0 obj  /Producer (Apache FOP Version..etc etc etc)

And also I observed that it is happening in IE6 only. With IE 7 the PDF is
getting generated always properly. Please help me with this issue.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: fop .95 PDF generation issue with IE 6 (working fine in IE7)

2011-06-16 Thread JOSE L MARTINEZ-AVIAL
I don't think it is a FOP problem. I've seen that behaviour when I try to
navigate to some action that generates a PDF, and it fails for wathever
reason. If I fix the problem and try to refresh the page, the PDF is shown
as a lot of rubbish. Actually, it is the binary content of the PDF. So in
those cases it seems that the content/type received after the refresh is not
being taken into account, and it just shows the document as plain text. But
that's just my experience.

2011/6/16 Chetan Shirol chetanb...@gmail.com

 I am facing one problem with fop .95 jar - some time PDF gets generated
 properly
 in the popup screen and some times it is getting corrupted (shows some text
 as
 - %PDF-1.4 %ª«¬­ 4 0 obj  /Producer (Apache FOP Version..etc etc
 etc)

 And also I observed that it is happening in IE6 only. With IE 7 the PDF is
 getting generated always properly. Please help me with this issue.



 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




Error including a PDF inside another PDF

2011-06-16 Thread JOSE L MARTINEZ-AVIAL
Hi,
fox:external-document content-type=pdf src=prueba.pdf/


Re: Error including a PDF inside another PDF

2011-06-16 Thread JOSE L MARTINEZ-AVIAL
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