watchdog Posted November 24, 2009 Share Posted November 24, 2009 Hi all...I use ps2pdf to create pdf files using php. Basically just text files then I use : $command="enscript myFile.txt -p " . "psfile.ps ps -R -B -fTimes-Roman13"; $response=`$command`; $command="ps2pdf psfile.ps " . "myFile.pdf"; $response=`$command`; header("Location: myFile.pdf"); This works great for text files. Can anyone tell me how in the php code you code for an image to show up in the PDF file, and then in the ps2pdf command, anything that relates to showing that image in the PDF (myfile.pdf)..... Heres an example of what my text line in my php program might look like : $myTextLine="This is my dog ". $myTextLine.="here is where I want to put a pic of my dog". Hope this is clear. Thanks! Link to comment https://forums.phpfreaks.com/topic/182835-ps2pdf/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.