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

Save a filled form as a new page in the same file

New Here ,
Jun 17, 2019 Jun 17, 2019

Copy link to clipboard

Copied

Hi,

I'd like to create a script that would save the main form (page 1) when completed as a new page with the Field ''date'' and field .time'' as the reference.

The form will be filled twice a day and the pages would be added in the same file for the whole month.

I would probably also save as Flattenfields() to protect the information added on each forms.

June =

page 1 (Empty Form)

page 2 (june 1 - 6h30)

page 3 (june 1 - 10h30)

page 4 (june 2 - 6h30)

etc....

Search everywhere, but i couldn't find anything on saving the form in the same file (add page)

Thanks

Mike

TOPICS
Acrobat SDK and JavaScript

Views

179

Translate

Translate

Report

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 17, 2019 Jun 17, 2019

Copy link to clipboard

Copied

Is this going to only be used in Acrobat? Can you install a script on the local machine of each user who is going to use it?

If the answer to either questions is No then you can't do it.

If it's yes then you will need to create a trusted function in a privileged context to extract the page and save it under a new name (and flatten it, if you wish).

Votes

Translate

Translate

Report

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 17, 2019 Jun 17, 2019

Copy link to clipboard

Copied

It could be used in acrobat and on local machine, but ideally, it would also work on ipads with PDF Expert on other appas if a better choice is offered!

Thanks

Votes

Translate

Translate

Report

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 17, 2019 Jun 17, 2019

Copy link to clipboard

Copied

LATEST

PDF Expert processes a lot more JavaScript than Adobe REader on iOS but I don't think it will spawn a page template... which is what you want for this application.

To accomplish your goal, you're not actually going to save a copy of the page the user just completed. Instead, you're going set the values of the data and time fields and then spawn a new blank form in front of it. Use "Organize Pages" to create and hide a blank version of your form then look at the methods around the template object to understand how to spawn a new version of the template page to the location you want.

Votes

Translate

Translate

Report

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