I had a hard time switching to pdf for a day, but I still couldn't use Google to convert it. but I can use html2pdf to convert the background style to HTML, but I don't have a style to arrange it, and I have a background, tangle ...., according to the past experience of converting html to pdf in the company project, The History step is html2pdf (table nesting is not supported, not supported by various types)-& gt; dompdf (easy to use, css can be introduced ..) -& after a day's hard work on converting pdf files, it still won't work.
It can be converted to Google, but the background style is lost.
Use html2pdf to convert, yes, but the arrangement does not have a style, and the background has it,
Tangle ....
------ Solution --------------------
According to the past experience of converting html to pdf in the company's project, the historical steps are as follows:
Html2pdf (table nesting is not supported, and various types are not supported)-> dompdf (easy to use, css can be introduced ..) -> wkhtmltopdf command line conversion (the webkit engine can basically say what the chrome browser sees and what the pdf converts)
However, there is still some distance from the customer's goal, which needs to be fine-tuned.
------ Solution --------------------
Use tcpdf. html is supported.
------ Solution --------------------
Discussion
Reference:
According to the past experience of converting html to pdf in the company's project, the historical steps are as follows:
Html2pdf (table nesting is not supported, and various types are not supported)-> dompdf (easy to use, css can be introduced ..) -> wkhtmltopdf command line conversion (the webkit engine can basically say what the chrome browser sees and what the pdf converts)
But there is still some distance from the customer's goal ......
------ Solution --------------------
You may need to use related solutions recently.
Ask what is the gap between dompdf and wkhtmltopdf.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.