ByteScout PDF Renderer SDK - VB.NET - Show Or Hide Text Or Vector Or Image Layers In PDF - ByteScout

ByteScout PDF Renderer SDK – VB.NET – Show Or Hide Text Or Vector Or Image Layers In PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Renderer SDK – VB.NET – Show Or Hide Text Or Vector Or Image Layers In PDF

How to show or hide text or vector or image layers in PDF in VB.NET and ByteScout PDF Renderer SDK

The tutorial below will demonstrate how to show or hide text or vector or image layers in PDF in VB.NET

The coding tutorials are designed to help you test the features without need to write your own code. ByteScout PDF Renderer SDK: the library that renders PDF into high quality images and thumbnails. Includes various functions like batch processing, PNG, TIFF output. Can be used from web and desktop applications. It can show or hide text or vector or image layers in PDF in VB.NET.

This code snippet below for ByteScout PDF Renderer SDK works best when you need to quickly show or hide text or vector or image layers in PDF in your VB.NET application. 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! You can use these VB.NET sample examples in one or many applications.

Our website provides trial version of ByteScout PDF Renderer SDK for free. It also includes documentation and source code samples.

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 Bytescout.PDFRenderer Class Program Friend Shared Sub Main(args As String()) ' Create an instance of Bytescout.PDFRenderer.RasterRenderer object and register it. Dim renderer As New RasterRenderer() renderer.RegistrationName = "demo" renderer.RegistrationKey = "demo" Dim renderingOptions As New RenderingOptions() ' Enable text objects rendering renderingOptions.RenderTextObjects = True ' DISABLE vector objects rendering renderingOptions.RenderVectorObjects = False ' DISABLE image objects rendering renderingOptions.RenderImageObjects = False ' Load PDF document. renderer.LoadDocumentFromFile("multipage.pdf") For i As Integer = 0 To renderer.GetPageCount() - 1 ' Render document page to PNG image file renderer.Save("image" & i & ".png", RasterImageFormat.PNG, i, 300, renderingOptions) Next ' Cleanup renderer.Dispose() ' Open the first output file in default image viewer. System.Diagnostics.Process.Start("image0.png") End Sub End Class

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Renderer SDK Home Page

Explore ByteScout PDF Renderer SDK Documentation

Explore Samples

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

Explore ByteScout PDF Renderer SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Renderer SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next