Skip to main content
harmoniium
Known Participant
November 5, 2019
Answered

Flatten a Form from VB.NET

  • November 5, 2019
  • 1 reply
  • 710 views

We have a program that merges multiple PDFs into one and then there is an option to create an electronic signature to a separate PDF that is post fixed to the merged files.  We found a problem doing this when one of those initially merged files is a submittal form.  I'd like to flatten those files programmatically before being merged.  Is there a way to do this in DC from VB.NET?

 

Thank you

This topic has been closed for replies.
Correct answer Thom Parker

Yes, have you looked at the IAC reference?  You can call JavaScript functions from the IAC, so you can call the doc.flattenPages() function.

1 reply

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
November 5, 2019

Yes, have you looked at the IAC reference?  You can call JavaScript functions from the IAC, so you can call the doc.flattenPages() function.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
harmoniium
Known Participant
November 6, 2019

Thank you!  I just used GetJSObject() to reference the flattenPages() function and it works.