List and count attachments
Hi.
Is there a way to list and/or count all attachments in a PDF file?
I'd like the output in the Console or in a text file, it's for files comparison purpose (they contain dozens of attachments).
Thank you.
Hi.
Is there a way to list and/or count all attachments in a PDF file?
I'd like the output in the Console or in a text file, it's for files comparison purpose (they contain dozens of attachments).
Thank you.
They can be accessed via the dataObjects property, like this:
console.println("Number of attachments: " + this.dataObjects.length);
for (var i=0; i<this.dataObjects.length; i++) {
console.println("Attachment #"+i+": " +this.dataObjects.name);
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.