The sample source codes on this page will demonstrate you how to make data masking in PDF in VB.NET. ByteScout PDF Extractor SDK helps with data masking in PDF in VB.NET. ByteScout PDF Extractor SDK is the SDK is designed to help developers with pdf tables and pdf data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker and other utilities.
Fast application programming interfaces of ByteScout PDF Extractor SDK for VB.NET plus the instruction and the VB.NET code below will help you quickly learn data masking in PDF. VB.NET sample code is all you need: copy and paste the code to your VB.NET application’s code editor, add a reference to ByteScout PDF Extractor SDK (if you haven’t added yet) and you are ready to go! You can use these VB.NET sample examples in one or many applications.
On our website you may get trial version of ByteScout PDF Extractor SDK 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.IO Imports System.Text.RegularExpressions Imports Bytescout.PDFExtractor Module Program Sub Main() Try ' Generate CSVExtractor instance Using extractor As New CSVExtractor("demo", "demo") ' Load PDF document extractor.LoadDocumentFromFile("sample.pdf") ' Get all data Dim allData = extractor.GetCSV() ' Regular expressions and replacements Dim ssnRegex = "\d{3}[-]?\d{2}[-]?\d{4}" Dim ssnReplace = "***-**-****" Dim phoneRegex = "\d{3}[-]?\d{3}[-]?\d{4}" Dim phoneReplace = "***-***-****" ' Find and mask SSN and phone numbers allData = Regex.Replace(allData, ssnRegex, ssnReplace) allData = Regex.Replace(allData, phoneRegex, phoneReplace) ' Write as CSV File.WriteAllText("output.csv", allData) ' Open file Process.Start("output.csv") End Using Catch ex As Exception Console.WriteLine(ex.Message) End Try Console.WriteLine("Press enter key to exit...") Console.ReadLine() End Sub End Module
60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page
Explore ByteScout PDF Extractor SDK Documentation
Explore Samples
Sign Up for ByteScout PDF Extractor SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page
Explore ByteScout PDF Extractor SDK Documentation
Explore Samples
Sign Up for ByteScout PDF Extractor SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: