Add watermark to existing PDF using adobe acrobat pro from windows batch -
i don't script in adobe , rabbit hole deep after doing searching, wondering if knows how can add watermark existing pdf calling adobe acrobat pro windows batch file. know 'actions" in adobe javascript, not sure how call 1 of these batch file. i'm open suggestions/ideas here though if achieves same thing , straight forward -- if not using adobe.
i don't know want here short vbs example, can easy changed windows batch file. luck, reinhard
file = "d:\test.pdf" '// open acrobat , set required objects set app = createobject("acroexch.app") app.show set avdoc = createobject("acroexch.avdoc") set aform = createobject("aformaut.app") 'from aformapi '// open file , add watermark based on text (using acrojs) if avdoc.open(file,"") aform.fields.executethisjavascript "this.addwatermarkfromtext(""confidential"", 0, font.helv, 24, color.red);" end if set avdoc = nothing set aform = nothing set app = nothing
Comments
Post a Comment