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?

Cheers,

Philippe


----- Mail original -----
De: "John Hewson" <[email protected]>
À: [email protected]
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, [email protected] wrote:
> 
> Hi,
> 
> is it possible to include PostScript images  on a PDPage in PDFBox?
> 
> 
> Many thanks.
> 
> Philippe
> 
> 
> 

Reply via email to