D
D
DevilPrado2020-03-25 23:49:27
JavaScript
DevilPrado, 2020-03-25 23:49:27

How to change pdf document using js?

There is a ready PDF document, which, as I plan, will change depending on the parameters entered by the user on the site. How can this be done with js? Are there ways not to create a new pdf file, such as through jsPDF and so on, but simply change the contents of an already finished one?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Leonid, 2020-03-26
@caballero

PDF is the final format and is not meant to be edited.
Technically, of course, you can parse and change, but it's not easy and few people need it

A
Arseny, 2020-03-26
Matytsyn @ArsenyMatytsyn

1. Make a layout (not a document) where the data will come → further to print in PDF. The PDF format itself is not editable.
2. Or look towards server generation according to the template.
I summarize: in the source you need not a PDF, but a template.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question