Page 1 of 1

convert postscript to image file

Posted: Fri May 30, 2008 3:07 am
by ivzgrace
Anyone can help me explain this code? thanks

passthru('ps2pdf -dEPSCrop -dProcessColorModel=/DeviceCMYK '.$AAP_directory.$AAP_orig_file.' '.$AAP_directory.'output.pdf; gs -dUseCIEColor -dFirstPage=1 -dLastPage=1 -dUseCropBox -dSAFER -dBATCH -dNOPAUSE -dNOPLATFONTS -sDEVICE=png16m -dBackgroundColor=16#ffffff -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile='.$AAP_directory.'Temp_300.png'.$AAP_directory.'output.pdf; convert '.$AAP_directory.'Temp_300.png'.' -quality 100 -depth 8 '.$AAP_directory.$newfile.$ext);

Re: convert postscript to image file

Posted: Fri May 30, 2008 3:53 am
by onion2k
It's calling ps2pdf ... to figure out what all the options mean you'll need to read the manual for that application.

Re: convert postscript to image file

Posted: Fri May 30, 2008 9:45 pm
by ivzgrace
i've already ready its manual but seem i hadn't still understand it... it won't convert file i uploaded. :D