Print as PDF via javascript / Flattening signatures
Hi,
I have a signed PDF-Form "file1" that I need to mergend into another PDF "file2" that is also going to be signed later in the process. I don't need the real signatures of file1 in file2 (that doesn't work either because merging a signed PDF deletes the signatures), it suffices to preserve the signatures as textobjects in file2 (The result I'd like to have is exactly the result I get when I print file1 as a PDF (e.g. with printer "Adobe PDF"). Hereby the signatures will be obtained as texts in the printed PDF.).
So I claim to have to adjust file1 before merging to file2. Because I need this for about 100x a month, it should work with a javascript-button (folder level).
For adjusting file1 I had two approaches, both don't work:
Approach 1: Print as PDF via javascript
I found out that there is no way to print as PDF via Javascript. Is that true? Somehow like the printparams.filename does not work with a printer that opens a save dialog on its own. Is there any other possibility to get that?
Approach 2: Flatten the PDF via javascript
I tried this.flattenPages(), but that doesn't work with signatures...
Is there any possibility to get what I want?
Thanks!
