Javascript To Insert Attachment On A PDF
Is there a java script I can use to insert an attachment into pdf. I am working with thousand of files and I have to manually insert all the attachment on each of them. Thanks in advance
Is there a java script I can use to insert an attachment into pdf. I am working with thousand of files and I have to manually insert all the attachment on each of them. Thanks in advance
OK, that's not quite what you described before. If the name of the file to attach can be derived from the name of the PDF file then it's not too difficult. You can use this code as a part of an Action to do it:
var attachmentFileName = this.documentFileName.replace(".pdf", "_Attachment 1.xlsx");
this.importDataObject({cName: attachmentFileName, cDIPath: this.path.replace(this.documentFileName, attachmentFileName)});
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.