Jump to content

PHP to PDF


toolsmith

Recommended Posts

Here's my conundrum: I have a php page that I need to export to pdf, so I'm using html2ps.php which works quite well.  Unfortunately the php script requires an html file so I'm trying to export the html portion of the php page from the client side back to the server and haven't had much luck.  I've gone down the path of using javascript to view the source but this only happens on the client side.  I need a way to render the php page to html and then save the source on the server so I can pass it along to html2ps.php.

 

Any thoughts?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/70768-php-to-pdf/
Share on other sites

I'm not sure exactly what you want, and i've never seen 'html2ps.php' so I don't know how it works. If you want the php code to be displayed, then you'll need to format it as if it's a tutorial. Write a html page with the php code written on it. Instead of having < or > replace them with < or > and other things like it. If it's true php, it will be interpreted by the server...

Link to comment
https://forums.phpfreaks.com/topic/70768-php-to-pdf/#findComment-355819
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.