D
D
DYLAN2022-02-20 19:52:42
JavaScript
DYLAN, 2022-02-20 19:52:42

How to fill a pdf form in JS?

How to fill a pdf form in JS?

The problem lies in the generation of a PDF file at the front. There is a set of data that needs to be turned into a PDF file. Everything is quite easy and it would seem that there could be problems here. I found the library https://pdf-lib.js.org/ , created a PDF form, but... this library does not want to work with Cyrillic. And I hit a dead end. this one is probably the only one that can fill out forms. How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DYLAN, 2022-02-20
@ermolaev_nikita

https://github.com/Hopding/pdf-lib/issues/715 the solution is here, it fixes problems with Cyrillic.

A
Adamos, 2022-02-20
@Adamos

Why the hell would you want to create a PDF form if you just want to turn the dataset into a PDF?
If this data needs to be requested from the user, then HTML forms are more flexible and do not have problems with encodings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question