S
S
synapse_people2017-07-28 15:40:09
linux
synapse_people, 2017-07-28 15:40:09

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

3 answer(s)
S
sazhyk, 2017-07-28
@sazhyk

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.

A
Anton, 2017-07-28
@karminski

Google to the rescue HTML 2 PDF. In general, we ourselves use https://mpdf.github.io/ for approximately the same purposes

R
rubtsoff, 2017-07-28
@rubsoff

https://convertio.co/ru/html-pdf/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question