Source code documentation samples provide quick and easy way to add a required functionality into your application. ByteScout PDF SDK helps with flatten PDF form in VB.NET. ByteScout PDF SDK is the library for pdf documents generation, modification and updates. Can also generate and fill PDF forms. Provides support for text (fonts, style, size, font family), layers, pdf form fields, vector and raster drawings.
This rich sample source code in VB.NET for ByteScout PDF SDK includes the number of functions and options you should do calling the API to implement flatten PDF form. In order to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. Enjoy writing a code with ready-to-use sample VB.NET codes to implement flatten PDF form using ByteScout PDF SDK.
On our website you may get trial version of ByteScout PDF SDK for free. Source code samples are included to help you with your VB.NET application.
Imports Bytescout.PDF ''' <summary> ''' This example demonstrates how to flatten a filled PDF form (make it uneditable). ''' </summary> Class Program Shared Sub Main() ' Load filled PDF form Dim pdfDocument = New Document("filled_form.pdf") pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" ' Flatten the form pdfDocument.FlattenDocument() ' Save modified document pdfDocument.Save("result.pdf") ' Cleanup pdfDocument.Dispose() ' Open document in default PDF viewer app Process.Start("result.pdf") End Sub End Class