The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. Want to remove sensitive data from region in your VB.NET app? ByteScout Sensitive Data Suite is designed for it. ByteScout Sensitive Data Suite is the set that includes SDK tools from ByteScout for working with sensitive and personal data. With these tools you may analyze, redact, remove, blackout sensitive data in documents and pdf.
The SDK samples given below describe how to quickly make your application do remove sensitive data from region in VB.NET with the help of ByteScout Sensitive Data Suite. Simply copy and paste in your VB.NET project or application you and then run your app! Use of ByteScout Sensitive Data Suite in VB.NET is also described in the documentation included along with the product.
You can download free trial version of ByteScout Sensitive Data Suite from our website with this and other source code samples for VB.NET.
Imports System.Drawing Imports Bytescout.PDFExtractor Class Program Shared Sub Main(ByVal args As String()) ' Create Bytescout.PDFExtractor.Remover instance Dim remover As New Remover("demo", "demo") ' Load sample PDF document remover.LoadDocumentFromFile("sample1.pdf") ' Remove text objects contained in the specified rectangle or intersecting with it. ' NOTE: The removed text might be larger than the specified rectangle. Currently the Remover is unable ' to split PDF text objects. remover.RemoveText(0, New RectangleF(45.0F, 101.0F, 183.0F, 310.0F), "result1.pdf") ' Clean up. remover.Dispose() Console.WriteLine() Console.WriteLine("Press any key to continue and open result PDF files in default PDF viewer...") Console.ReadKey() Process.Start("result1.pdf") End Sub End Class