pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@free.fr
Subject Re: Including PostScript in PDFBox
Date Wed, 12 Nov 2014 10:14:24 GMT
Hi John,

I have exported an EPS image to a 2000 DPI PNG using Inkscape,converted the PNG to a 100%-quality
JPG using Gimp, and then added the JPG image as a 300 x 27 pixel PDJpeg to a PDPage. Yet,
the JDJpeg is pixelated.

Is there a better way to make PDPjeg images as little pixelated as possible?



----- Mail original -----
De: "John Hewson" <john@jahewson.com>
À: users@pdfbox.apache.org
Envoyé: Mercredi 12 Novembre 2014 10:16:11
Objet: Re: Including PostScript in PDFBox

Hi Philippe,

PDFBox cannot do that directly. For simple PostScript files you might be able to parse the
files yourself and convert the drawing commands into equivalent PDF commands. However, for
any non-trivial file you’re going to need a PostScript interpreter.

If you don’t need to be 100% Java then an alternative route would be to convert your PostScript
to PDF using Ghostscript and then you can use PDFBox to include that PDF image on a page.

-- John

> On 12 Nov 2014, at 01:02, phiroc@free.fr wrote:
> Hi,
> is it possible to include PostScript images  on a PDPage in PDFBox?
> Many thanks.
> Philippe

View raw message