Merge and insert Javascript


I would like to know if it's possible to create a PDF and add javascript inside.

I also tried to merge a blank page with the javascript inside to my newly generated file but the javascript is no longer inside the file.

Please help!


Can you describe what you want to do exactly? Which code do you need? It is possible to add such feature.

I have a page I need to print from a software. I would like to print it in a PDF and add fields and check boxes to it so the user could fill it and print it again on a printer. I already have my javascript code to generate the fields and checkboxes. I would like to know if it's possible to insert the code during the PDF creation?

Tell me if you need more clarifications.