Source code documentation samples give simple and easy method to install a needed feature into your application. ByteScout Data Extraction Suite can optimize PDF with PDF extractor SDK. It can be applied from C#. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.
The following code snippet for ByteScout Data Extraction Suite works best when you need to quickly optimize PDF with PDF extractor SDK in your C# application. Simply copy and paste in your C# project or application you and then run your app! Enjoy writing a code with ready-to-use sample C# codes.
ByteScout Data Extraction Suite free trial version is available on our website. C# and other programming languages are supported.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using System; using System.IO; using Bytescout.PDFExtractor; namespace OptimizePDF { class Program { static void Main() { // Create Bytescout.PDFExtractor.DocumentOptimizer instance using (DocumentOptimizer optimizer = new DocumentOptimizer("demo", "demo")) { // Try various optimization options OptimizationOptions optimizationOptions = new OptimizationOptions(); optimizationOptions.ImageOptimizationFormat = ImageOptimizationFormat.JPEG; optimizationOptions.JPEGQuality = 25; optimizationOptions.ResampleImages = true; optimizationOptions.ResamplingResolution = 120; // Optimize document and save it to new file optimizer.OptimizeDocument(@".\sample1.pdf", @".\optimized.pdf", optimizationOptions); } Console.WriteLine("Optimized document has been saved as " + Path.GetFullPath(@".\optimized.pdf")); Console.WriteLine(); Console.WriteLine("Press any key..."); Console.ReadLine(); } } }
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: