zippy1978 / ghost4j

Java wrapper for Ghostscript C API + PS/PDF document handling API
http://www.ghost4j.org
GNU Lesser General Public License v3.0
64 stars 39 forks source link

PSConverter.java with ps2write #1

Closed BXCY closed 11 years ago

BXCY commented 11 years ago

Line 94

    "-sDEVICE=pswrite",

Please add Parameter for method run for Argument Call to pswrite or ps2write

pswrite never will generate a ps with fonts! ps2write will....

Best Regards!

zippy1978 commented 11 years ago

Thank you very much ! I never noticed that. I will modify it on my next push :)

BXCY commented 11 years ago

I was just testing for converting pdf->ps->pdf (for shrinking the size of a pdf this is very useful.. in my case.. 600kb pdf -to> 99kb pdf with embedded fonts where needed) in on step.. and with use of the high level api i noticed the problem within the code after the resulting ps files where only image ps :) the option is not very well documented ;)

regards, Andreas

Am 16.01.2013 21:59, schrieb Gilles Grousset:

Thank you very much ! I never noticed that. I will modify it on my next push :)

— Reply to this email directly or view it on GitHub https://github.com/zippy1978/ghost4j/issues/1#issuecomment-12339718.

zippy1978 commented 11 years ago

Thats it ! Code is pushed (with many other features as well). How it works ? By default the PSConvert tries to use ps2write device when available (it is not available in old Ghostscript versions), otherwise falls back to pswrite. You can also force the device with setDevice (auto, pswrite, ps2write).

Hope it will help.

Regards, Gilles