Answer the question
In order to leave comments, you need to log in
How to approach the implementation of PSD->HTML->PDF->image or PSD->HTML->image->PDF in PHP?
There is a set of PSD templates with reports containing graphs.
At the output, you need to get PDFs and pictures, i.e. the user can specify in the personal account in which format reports should be received. The implementation must be in php.
Now implemented like this:
Answer the question
In order to leave comments, you need to log in
a picture in PDF remains a picture
see https://wkhtmltopdf.org/ for html to pdf and its wrapper
https://wkhtmltopdf.org/ can immediately both in pdf and in a picture
If you convert a page first into an image, then there is no point in converting it to PDF !!!
This, for example: will result in the combination of text into an image, which will greatly reduce the print quality of the finished PDF and destroy the user's ability to copy text.
Therefore, I do not see any problems in your concept. But in general it is better wkhtmltopdf.org I
recommend only to make a style sheet for printing. And PDF, which is similar in style to the CSS table for printing the page, is what you need to include when exporting to PDF.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question