This rich and prolific sample source code in VBScript for ByteScout PDF Suite contains various functions and options you should do calling the API to implement flatten pdf form with pdf sdk. To use flatten pdf form with pdf sdk in your VBScript project or application just copy & paste the code and then run your app! These VBScript sample examples can be used in one or many applications.
ByteScout PDF Suite free trial version is available for download from our website. Free trial also includes programming tutorials along with source code samples.
' This example demonstrates how to submit or reset form. ' Create Bytescout.PDF.Document object Set pdfDocument = CreateObject("Bytescout.PDF.Document") pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" ' Load filled PDF form pdfDocument.Load("filled_form.pdf") ' Flatten the form pdfDocument.FlattenDocument() ' Save document to file pdfDocument.Save("result.pdf") ' Open document in default PDF viewer app Set shell = CreateObject("WScript.Shell") shell.Run "result.pdf", 1, false