Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating a writable pdf file using Javascript

New Here ,
Jun 18, 2024 Jun 18, 2024

Hi to everyone reading this post.
I have like a "Checklist" that I have to make for the web. Now it has a lot of areas that have to be made as checkboxes and also there are certain text areas that need a text box.
My question now is, is it possible to automate this process in Javascript? I need the system to recognize those empty fields and I want the script to create the needed text and check boxes?

 

TOPICS
JavaScript , PDF forms
747
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 18, 2024 Jun 18, 2024

Scripts are not guaranteed to work on the web browsers.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 18, 2024 Jun 18, 2024

My bad i didnt specify it better. Im basically doing a design in Figma then exporting it as a pdf.  I need to automate the creation of a writable pdf file in adobe acrobat. I want too use its inbuilt system of Javascript, to automate the process of creating the checkboxes and textboxes

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 18, 2024 Jun 18, 2024

You can use the addField method to create new fillable form fields in a PDF file using JS.

See the documentation of this method for the details on how to use it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 26, 2024 Jun 26, 2024
LATEST

You can also look at commercial solutions like the one my company provides to build fillable forms programmatically with javascript - https://pspdfkit.com/guides/web/forms/create-edit-and-remove/built-in-ui/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines