ByteScout Data Extraction Suite - VB.NET - Data masking in pdf with pdf extractor sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Data Extraction Suite – VB.NET – Data masking in pdf with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – VB.NET – Data masking in pdf with pdf extractor sdk

data masking in pdf with pdf extractor sdk in VB.NET and ByteScout Data Extraction Suite

Learn to code data masking in pdf with pdf extractor sdk in VB.NET: How-To tutorial

Easy to understand coding instructions are written to assist you to try-out the features without the requirement to write your own code. ByteScout Data Extraction Suite was created to assist data masking in pdf with pdf extractor sdk in VB.NET. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.

Want to speed up the application development? Then this VB.NET, code samples for VB.NET, developers help to speed up the application development and writing a code when using ByteScout Data Extraction Suite. Just copy and paste this VB.NET sample code to your VB.NET application’s code editor, add a reference to ByteScout Data Extraction Suite (if you haven’t added yet) and you are ready to go! Enjoy writing a code with ready-to-use sample VB.NET codes to implement data masking in pdf with pdf extractor sdk using ByteScout Data Extraction Suite.

Visit our website to get a free trial version of ByteScout Data Extraction Suite. Free trial contains many of source code samples to help you with your VB.NET project.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.vb
      
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

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next