Answer the question
In order to leave comments, you need to log in
PDF generation from HTML template (pages - in JPG)?
Such a situation: you need to generate PDF contracts from HTML templates. The output documents should be without the possibility of selecting text, that is, they should look like scans (in fact, PDF is a wrapper over JPG pages).
We need the ability to substitute a sample signature (picture) in the right place, as well as replacing the text by token (for example, {test}).
Advise the instrument to have fewer crutches. Thank you!
*template is not necessarily in html, you can use any other
Answer the question
In order to leave comments, you need to log in
I am using jspdf . As the name suggests, it is in JS. It works for me without a server part at all, everything is generated on the client side.
It's a pretty big harvester. I like. The output is "picture in pdf", as you need. That is, HTML -> canvas -> JPEG -> PDF.
There, the truth is not fully figured out with the image quality setting, but enough for me.
Google to the rescue HTML 2 PDF. In general, we ourselves use https://mpdf.github.io/ for approximately the same purposes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question