ByteScout Data Extraction Suite - C# - Optimize PDF with PDF Extractor SDK - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Data Extraction Suite – C# – Optimize PDF with PDF Extractor SDK

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – C# – Optimize PDF with PDF Extractor SDK

How to optimize PDF with PDF extractor SDK in C# with ByteScout Data Extraction Suite

How to write a robust code in C# to optimize PDF with PDF extractor SDK with this step-by-step tutorial

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)

Program.cs
      
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(); } } }

ON-PREMISE OFFLINE SDK

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

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 Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next