N
N
nonbody2017-03-07 23:53:31
JavaScript
nonbody, 2017-03-07 23:53:31

Is it possible to embed javascript code in a PDF file?

Can this be done and how? Javascript or equivalent for PDF.
As a last resort, how to make the image immersed from the site into PDF?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dummyman, 2017-03-08
@nonbody

Specifically, JS cannot be embedded. PDF itself is designed to store documents in the way that printers should see the document. Downloading information from the site will not work, PDF is completely offline, from text to fonts and images.
However, there are also implicit features of PDF, such as links to external documents, such as other PDFs, lying in an adjacent folder. The limits of PDF are to be found in the PostScript documentation or its open source implementation GhostScript .

I
Immortal_pony, 2017-03-08
@Immortal_pony

It is possible to generate PDFs with JS: https://github.com/MrRio/jsPDF

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question