Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PDF to PNG/Jpeg With Ghostscript

0 views
Skip to first unread message

None

unread,
Jul 20, 2001, 12:56:52 PM7/20/01
to
Hi,
I am pretty new to ghostscript. I want to convert a pdf to a png
or jpeg. I can do this on the command line as follows:

gswin32c.exe -sDEVICE=jpeg -dBATH -dQUITE
-dNOPAGEPROMPT -q -dNOPAUSE -OutputFile=filename
inputfilename

This works fine... now I am trying to interface with gsdll32.dll through
the API. What are the commands that I need to send? I am trying.....
with little luck...


(jpeg) selectdevice
/NoPagePrompt true
/Batch true
/Quite true
/NoPause true
/TextAlphaBits 4
/GraphicsAlphaBits 4
/JPEGQ 100
/OutputFile (foo.jpg)
(in.pdf) run


Any help would be appreciated....

Thanks

Guy van den Berg


Russell Lang

unread,
Jul 21, 2001, 8:04:54 AM7/21/01
to
<None> wrote in message news:3b586...@news1.mweb.co.za...

> I am pretty new to ghostscript. I want to convert a pdf to a png
> or jpeg. I can do this on the command line as follows:
>
> gswin32c.exe -sDEVICE=jpeg -dBATH -dQUITE
> -dNOPAGEPROMPT -q -dNOPAUSE -OutputFile=filename
> inputfilename
>
> This works fine... now I am trying to interface with gsdll32.dll through
> the API. What are the commands that I need to send?

Same as the above. Just remove "gswin32c.exe" and the rest should be
passed to gsapi_init_with_args().


0 new messages