Render part of PDF page is easy to implement in VB.NET if you use these source codes below. ByteScout PDF Renderer SDK: the component (SDK) that renders PDF into high quality images and thumbnails. Includes various functions like page by page processing, BMP, PNG, TIFF or stream output. Can be used from web and desktop applications. It can render part of PDF page in VB.NET.
This code snippet below for ByteScout PDF Renderer SDK works best when you need to quickly render part of PDF page in your VB.NET application. In order to implement the functionality, you should copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Enjoy writing a code with ready-to-use sample VB.NET codes.
Download free trial version of ByteScout PDF Renderer SDK 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)
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" ' Set high quality resolution 600 dpi (600 dots per inch) Dim renderingResolution As Single = 600 ' Load PDF document. renderer.LoadDocumentFromFile("sample_table.pdf") ' Set extraction area renderer.SetExtractionArea(205.5f, 108.75f, 331.5f, 121.5f) ' Render part of document to PNG image file. renderer.Save({code}quot;result_{renderingResolution}.png", RasterImageFormat.PNG, 0, renderingResolution) ' Cleanup renderer.Dispose() ' Open the first output file in default image viewer. System.Diagnostics.Process.Start({code}quot;result_{renderingResolution}.png") End Sub End Class
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples