Opening a Document from Attachment Pane for Auto-Filling Task
- July 15, 2023
- 1 reply
- 340 views
Hello Experts,
No one responded to my previous post, so I'm posting again to seek a response.
I have a MASTER PDF with text fields, and I would like to auto-fill template PDF documents using an action button. Currently, I have been able to achieve this to some extent, as the auto-filling function is working fine. However, I would like to make some changes.
Currently, I have to place the "Target Documents" in a specific folder location and I also have to mention in the script like this:
var targetDocPath = "E:/Fili/Document1.pdf";
var targetPDF = app.openDoc(targetDocPath);
What I want to do is attach the target/template documents to the master PDF in the Attachment Pane and I would like the script to detect the target document (through checkbox selection) from the attachments in the Attachment Pane and Open document and Fill it out.
This way, I won't have to manage multiple PDF files separately, and the Master PDF will become an all in one solution.
So, my question is: Is it possible to open a document from the attachment pane and perform this auto-filling function?
I hope you understand what I'm trying to achieve. 🙂
Thank you.
