You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Jim Urban <ji...@netsteps.net> on 2002/03/20 15:09:27 UTC

PS and PDF Rendering Different

I use FOP to generate PDF files from XML data retrieved from a database.
The PDFs generate just fine.  However, when I tell FOP to render postscript
the output file is often corrupt.  When I print the ps file on my postscript
printer the header area on the second and following pages is all messed up.
That is, text is missing, strange text and shapes appear in their place and
the size of the header area is not the same as the first page.  If I view
the ps file using GSView (GhostScript) I get the following message when I
attempt to open the file:

DSC Error
%%Pages: doesn't match number of %%Page:

GSView displays the ps file with the same errors I get if I print the ps
file directly to the printer.  I am using FOP 0.20.2 on Windows (both NT and
2000) with JDK 1.3 from Sun.  Any ideas what is wrong?

Thanks,

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: PS and PDF Rendering Different

Posted by Jeremias Maerki <je...@outline.ch>.
We're using Acrobat Reader 4.05 on Unix (Linux/Solaris). I've written a
little wrapper class that calls "acroread -toPostScript......" (as a
filter). For us, that's clearly an temporary solution until we can
invest some more time in the PostScript renderer especially, since
Acrobat takes up about 40% of the whole processing time of a single
document. No ideas on the figures with GhostScript. I'm only using it as
a viewer.

> Thank you for your honesty.  I'm glad to know its not something we're doing.
> As for using GhostScript, how did you integrate it into your Java
> application?  The Java application which does our rendering runs detached
> (as a Windows service).  This application runs non-stop, monitoring a
> database.  When it sees a row added to a table it generates a PDF.  On an
> average day this application will generate a couple thousand PDFs.  So being
> able to run GhostScript either within the Java application (preferred
> approach) or as a daemon which would monitor a directory for the creating of
> PDF files which it would then print would be a second option.

Good luck!

Cheers,
Jeremias Märki

mailto:jeremias.maerki@outline.ch

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: PS and PDF Rendering Different

Posted by Jim Urban <ji...@netsteps.net>.
Jeremias,

Thank you for your honesty.  I'm glad to know its not something we're doing.
As for using GhostScript, how did you integrate it into your Java
application?  The Java application which does our rendering runs detached
(as a Windows service).  This application runs non-stop, monitoring a
database.  When it sees a row added to a table it generates a PDF.  On an
average day this application will generate a couple thousand PDFs.  So being
able to run GhostScript either within the Java application (preferred
approach) or as a daemon which would monitor a directory for the creating of
PDF files which it would then print would be a second option.

Thanks,
Jim

> -----Original Message-----
> From: Jeremias Maerki [mailto:jeremias.maerki@outline.ch]
> Sent: Friday, March 22, 2002 1:25 AM
> To: fop-dev@xml.apache.org
> Subject: Re: PS and PDF Rendering Different
>
>
> > I use FOP to generate PDF files from XML data retrieved from a database.
> > The PDFs generate just fine.  However, when I tell FOP to
> render postscript
> > the output file is often corrupt.  When I print the ps file on
> my postscript
> > printer the header area on the second and following pages is
> all messed up.
> > That is, text is missing, strange text and shapes appear in
> their place and
> > the size of the header area is not the same as the first page.
> If I view
> > the ps file using GSView (GhostScript) I get the following
> message when I
> > attempt to open the file:
> >
> > DSC Error
> > %%Pages: doesn't match number of %%Page:
> >
> > GSView displays the ps file with the same errors I get if I print the ps
> > file directly to the printer.  I am using FOP 0.20.2 on Windows
> (both NT and
> > 2000) with JDK 1.3 from Sun.  Any ideas what is wrong?
>
> Sure, the PostScript renderer is far from being finished. :-) The
> renderer still has problems with some fo constructs, fonts and even DSC
> (as you mentioned). If you need good quality right now, you should use
> Acrobat Reader on Unix or GhostScript to convert PDF to PS. That's what
> I still do. Improving the PostScript renderer is still on my tasklist,
> but I've got so much to do that it hasn't come to the top of the list,
> yet. Sorry.
>
> Cheers,
> Jeremias Märki
>
> mailto:jeremias.maerki@outline.ch
>
> OUTLINE AG
> Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
> Tel. +41 41 317 2020 - Fax +41 41 317 2029
> Internet http://www.outline.ch
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: PS and PDF Rendering Different

Posted by Jeremias Maerki <je...@outline.ch>.
> I use FOP to generate PDF files from XML data retrieved from a database.
> The PDFs generate just fine.  However, when I tell FOP to render postscript
> the output file is often corrupt.  When I print the ps file on my postscript
> printer the header area on the second and following pages is all messed up.
> That is, text is missing, strange text and shapes appear in their place and
> the size of the header area is not the same as the first page.  If I view
> the ps file using GSView (GhostScript) I get the following message when I
> attempt to open the file:
> 
> DSC Error
> %%Pages: doesn't match number of %%Page:
> 
> GSView displays the ps file with the same errors I get if I print the ps
> file directly to the printer.  I am using FOP 0.20.2 on Windows (both NT and
> 2000) with JDK 1.3 from Sun.  Any ideas what is wrong?

Sure, the PostScript renderer is far from being finished. :-) The
renderer still has problems with some fo constructs, fonts and even DSC
(as you mentioned). If you need good quality right now, you should use
Acrobat Reader on Unix or GhostScript to convert PDF to PS. That's what
I still do. Improving the PostScript renderer is still on my tasklist,
but I've got so much to do that it hasn't come to the top of the list,
yet. Sorry.

Cheers,
Jeremias Märki

mailto:jeremias.maerki@outline.ch

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org