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

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

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

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

Learning is essential in computer world and the tutorial below will demonstrate how to remove text with pdf extractor sdk in VB.NET

These sample source codes on this page below are displaying how to remove text with pdf extractor sdk in VB.NET. ByteScout PDF Suite: the bundle that provides six different SDK libraries to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript. It can remove text with pdf extractor sdk in VB.NET.

Want to quickly learn? This fast application programming interfaces of ByteScout PDF Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to remove text with pdf extractor sdk. Simply copy and paste in your VB.NET project or application you and then run your app! Enjoy writing a code with ready-to-use sample VB.NET codes.

You can download free trial version of ByteScout PDF Suite from our website with this and 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 PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF 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 PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next