sagnik Posted March 21, 2018 Posted March 21, 2018 I'm not asking create pdf using scripts like FPDF, jsPDF, TCPDF, etc. I've used them but it had not worked like expected. So I've thought why not create my own PDF Creator but I don't have any idea that how I will create a pdf writer using php. What I want to do is convert the whole page to pdf including styles & markup without any type of compromising the markup & style. You can look out the page I want convert to pdf here: https://whatsnew.cf/admin/accounting/invoice.php?do=view&oid=15188130456&refid=49 Quote
patents Posted March 24, 2018 Posted March 24, 2018 Check this out. This may be helpful: https://github.com/mikehaertl/phpwkhtmltopdf Quote
sagnik Posted March 24, 2018 Author Posted March 24, 2018 Yeah, it's good but it requires "WKHTMLtoPDF" installed to execute the commands from PHP. If I want to use PHPWKHTMLtoPDF, I must have to install WKHTMLtoPDF on the system. In my local server it's possible but in HelioHost, it's not possible as Root Admins definitely will not allow me to install the framework on the system. That's why I want to create my own PDF Writer in PHP without any dependencies. Quote
Krydos Posted March 24, 2018 Posted March 24, 2018 You can install composer scripts on the server. Just run the composer command on your home pc, and then upload the files. Check out https://stackoverflow.com/a/40545971 Quote
Krydos Posted March 24, 2018 Posted March 24, 2018 This looks really useful too https://php-download.com/ Quote
sagnik Posted March 24, 2018 Author Posted March 24, 2018 Okay, I will try some scripts from the website you specified if no-one has fullfilled my expectations then I will let you know. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.