The documentation is crafted to assist you to apply the features on your side easily. ByteScout Sensitive Data Suite was made to help with check for sensitive data and PII in PDF in VB.NET. 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.
This rich and prolific sample source code in VB.NET for ByteScout Sensitive Data Suite contains various functions and options you should do calling the API to implement check for sensitive data and PII in PDF. If you want to know how it works, then this VB.NET sample code should be copied and pasted into your application’s code editor. Then just compile and run it. These VB.NET sample examples can be used in one or many applications.
On our website you may get trial version of ByteScout Sensitive Data Suite for free. Source code samples are included to help you with your VB.NET application.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports System.Drawing Imports Bytescout.PDFExtractor Class Program Shared Sub Main(ByVal args As String()) ' Create Bytescout.PDFExtractor.Remover2 instance Dim remover As New Remover2("demo", "demo") ' Mask removed text, which ultimately black out region remover.MaskRemovedText = True ' Load sample PDF document remover.LoadDocumentFromFile("samplePDF_EmailSSN.pdf") ' Prepare TextExtractor Using textExtractor As New TextExtractor("demo", "demo") ' Load document into TextExtractor textExtractor.LoadDocumentFromFile("samplePDF_EmailSSN.pdf") ' Enable RegexSearch textExtractor.RegexSearch = True ' Set word matching options textExtractor.WordMatchingMode = WordMatchingMode.None ' Search SSN in format 202-55-0130 Dim regexPatternSSN As String = "[0-9]{3}-[0-9]{2}-[0-9]{4}" ' Search email Addresses Dim regexPatternEmail As String = "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" ' Search results for SSN Dim searchResultsSSN() As ISearchResult = textExtractor.FindAll(0, regexPatternSSN, caseSensitive:=False) ' Search results for Email Dim searchResultEmail() As ISearchResult = textExtractor.FindAll(0, regexPatternEmail, caseSensitive:=False) ' Remove SSN result text objects find by SearchResults. remover.AddTextToRemove(searchResultsSSN) ' Remove Email result text objects find by SearchResults. remover.AddTextToRemove(searchResultEmail) ' Perform removal of specified objects remover.PerformRemoval("result1.pdf") End Using ' 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
60 Day Free Trial or Visit ByteScout Sensitive Data Suite Home Page
Explore ByteScout Sensitive Data Suite Documentation
Explore Samples
Sign Up for ByteScout Sensitive Data Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Sensitive Data Suite Home Page
Explore ByteScout Sensitive Data Suite Documentation
Explore Samples
Sign Up for ByteScout Sensitive Data Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples