ByteScout PDF Extractor SDK - VB.NET - Optimize PDF - ByteScout

ByteScout PDF Extractor SDK – VB.NET – Optimize PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VB.NET – Optimize PDF

How to optimize PDF in VB.NET with ByteScout PDF Extractor SDK

Tutorial on how to optimize PDF in VB.NET

We made thousands of pre-made source code pieces for easy implementation in your own programming projects. ByteScout PDF Extractor SDK can optimize PDF. It can be used from VB.NET. ByteScout PDF Extractor SDK is the Software Development Kit (SDK) that is designed to help developers with data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker.

VB.NET code samples for VB.NET developers help to speed up coding of your application when using ByteScout PDF Extractor SDK. 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. Detailed tutorials and documentation are available along with installed ByteScout PDF Extractor SDK if you’d like to dive deeper into the topic and the details of the API.

Trial version of ByteScout PDF Extractor SDK is available for free. Source code samples are included to help you with your VB.NET app.

Try ByteScout PDF Extractor SDK today: Get 60 Day Free Trial or sign up for Web API

Imports Bytescout.PDFExtractor Module Program Sub Main() Try Using docOptimizer As New DocumentOptimizer("demo", "demo") 'Set Optimization Options Dim OptimizationOptions = New OptimizationOptions 'This will resize high resolution images OptimizationOptions.ResampleImages = True ''Set image optimization format 'OptimizationOptions.ImageOptimizationFormat = ImageOptimizationFormat.JPEG ''Control Optimized image quality, for further fine grained control 'OptimizationOptions.JPEGQuality = 10 'Perform Optimization docOptimizer.OptimizeDocument("sample.pdf", "sample_optimized.pdf", OptimizationOptions) ''Get Optimized file info Dim fileInfo_Sample = New System.IO.FileInfo("sample.pdf") Dim fileInfo_SampleOptimized = New System.IO.FileInfo("sample_optimized.pdf") 'Write Stats Console.WriteLine("Source File Size: " + fileInfo_Sample.Length.ToString() + " bytes") Console.WriteLine("Source File Optimized to Size: " + fileInfo_SampleOptimized.Length.ToString() + " bytes") End Using Catch ex As Exception Console.WriteLine(ex.Message) End Try Console.WriteLine("Press any key to exit...") Console.ReadLine() End Sub End Module

Try ByteScout PDF Extractor SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)



Get 60 Day Free Trial or Visit ByteScout PDF Extractor SDK page

Explore ByteScout PDF Extractor SDK documentation


Sign Up for free Web API key

Explore Web API Documentation