7

I'm using Ghost4J SimpleRenderer to convert my PDF to Image. By default the output png image is not anti aliased.

How can i set it.?

I know that, using Core API we can do it. But, is there any way in High Level API, for setting it?

Kai
  • 38,985
  • 14
  • 88
  • 103
Dipin
  • 1,085
  • 6
  • 19

1 Answers1

7

It is simply not built in. Just look at the command line options that SimpleRenderer is using: http://ghost4j.svn.sourceforge.net/viewvc/ghost4j/trunk/src/main/java/net/sf/ghost4j/renderer/SimpleRenderer.java?revision=143&view=markup

I would recommend to improve the SimpleRenderer with the options mentioned here http://ghostscript.com/doc/current/Use.htm#Rendering_parameters

I think adding "-dTextAlphaBits=4","-dGraphicsAlphaBits=4" to gsArgs is enough.

chromanoid
  • 545
  • 3
  • 14
  • thanx for the reply. let me look in to this :) – Dipin Nov 07 '12 at 12:26
  • 1
    Thank you! I added an 'antialisating' parameter on SimpleRender to support that. It not released yet, but available in the snapshot version. Also note that Ghost4J has a new home : http://www.ghost4j.org and is now hosted on GitHub at : https://github.com/zippy1978/ghost4j – zippy1978 Jan 04 '13 at 23:14