0
Add document level script in PDF
New Here
,
/t5/acrobat-services-api-discussions/add-document-level-script-in-pdf/td-p/14030012
Aug 23, 2023
Aug 23, 2023
Copy link to clipboard
Copied
Hello,
We want to automate the proess to add script in PDF file using some PDF SDK or API.
We want to add a field in PDF file and execute Script to display today's date whenever user open's file to print it.
var theDate = new Date();
theDate = theDate.setDate(theDate.getDate() + 28);
this.getField("Today").value = util.printd("mm/dd/yyyy", new Date());
this.getField("InOneMonth").value = util.printd("mm/dd/yyyy", theDate);
Below article specifies the steps but we want to achive it through code / api integration.
Thanks in advance.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-services-api-discussions/add-document-level-script-in-pdf/m-p/14030654#M6857
Aug 23, 2023
Aug 23, 2023
Copy link to clipboard
Copied
We don't currently have an API to do this. However, you can automate it in Acrobat.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

