ByteScout Data Extraction Suite - VB.NET - Remove text with pdf extractor sdk - ByteScout

ByteScout Data Extraction Suite – VB.NET – Remove text with pdf extractor sdk

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

How to remove text with pdf extractor sdk in VB.NET and ByteScout Data Extraction Suite

This code in VB.NET shows how to remove text with pdf extractor sdk with this how to tutorial

The sample source codes on this page shows how to remove text with pdf extractor sdk in VB.NET. ByteScout Data Extraction Suite can remove text with pdf extractor sdk. It can be applied from VB.NET. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.

Want to quickly learn? This fast application programming interfaces of ByteScout Data Extraction Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to remove text with pdf extractor sdk. This VB.NET sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Applying VB.NET application mostly includes various stages of the software development so even if the functionality works please test it with your data and the production environment.

If you want to try other source code samples then the free trial version of ByteScout Data Extraction Suite is available for download from our website. Just try other source code samples for VB.NET.

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

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

Module1.vb
      
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 "LOREM IPSUM" and save edited document as "result1.pdf". ' NOTE: The removed text might be larger than the search string. Currently the Remover deletes ' the whole PDF text object containing the search string. remover.RemoveText(0, "LOREM IPSUM", True, "result1.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(74.0F, 550.0F, 489.0F, 67.0F), "result2.pdf") ' Remove text object contained in the specified point. ' NOTE: The removed text might be larger than a word in the specified point. Currently the Remover is able ' to remove only the whole PDF text object containing the word. remover.RemoveText(0, New PointF(121.0F, 230.0F), "result3.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") Process.Start("result2.pdf") Process.Start("result3.pdf") End Sub End Class

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