convert postscript to image file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ivzgrace
Forum Newbie
Posts: 2
Joined: Fri May 30, 2008 3:03 am

convert postscript to image file

Post 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);
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: convert postscript to image file

Post by onion2k »

It's calling ps2pdf ... to figure out what all the options mean you'll need to read the manual for that application.
ivzgrace
Forum Newbie
Posts: 2
Joined: Fri May 30, 2008 3:03 am

Re: convert postscript to image file

Post by ivzgrace »

i've already ready its manual but seem i hadn't still understand it... it won't convert file i uploaded. :D
Post Reply