Jump to content

ps2pdf


watchdog

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.