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
patents Posted March 24, 2018 Posted March 24, 2018 Check this out. This may be helpful: https://github.com/mikehaertl/phpwkhtmltopdf
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.
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
Krydos Posted March 24, 2018 Posted March 24, 2018 This looks really useful too https://php-download.com/
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now