Converting PDF to JPG or any other Image Format

Kit Bishop kit at bishop.net.nz
Mon May 21 04:23:16 PDT 2007


GhostScript could be your friend - but take care of licensing.

I once had need of something similar.  However GhostScript license is 
GPL so you can't include GhostScript code directly in your code unless 
you are prepared to release your sources.  I was not in such a position.

So, what I did was produce a modified standalone version of GhostScript 
that accepted input from pipes and sent output to pipes.  This was a 
standalone application that invoked the piped communication via command 
line parameters.  When I needed the GhostScript functionality, I would 
fork a thread to execute it as a standalone process having first set up 
the pipes from the caller.  This way, I had not linked to GhostScript 
nor included GhostScript code in my application.  It was necessary to 
distribute the source of my modified GhostScript, but the code was small 
and of little sensitive relevance.

Best regards,
Kit Bishop

Amit wrote:
> Hello,
>
> I need to convert PDF and EPS files (with no preview embedded) to JPG
> or any other image format, so that I can render the Image using
> wxStaticBitmap.
>
> Is there any contribution to wxWidgets, which could help me achieve
> this. If not, it would be nice if some one can point to some other
> possible way.
>
> Desired Platform are Mac OS X and Windows.
>
> Thanks
> - Amit Gupta
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
>   




More information about the wx-users mailing list