ByteScout Premium 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 Premium Suite – C# – Optimize PDF with PDF Extractor SDK

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

How to optimize PDF with PDF extractor SDK in C# and ByteScout Premium Suite

Learn to code in C# to optimize PDF with PDF extractor SDK with this step-by-step tutorial

The sample shows instructions and algorithm of how to optimize PDF with PDF extractor SDK and how to make it run in your C# application. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can be applied to optimize PDF with PDF extractor SDK using C#.

The following code snippet for ByteScout Premium 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! Use of ByteScout Premium Suite in C# is also described in the documentation included along with the product.

You can download free trial version of ByteScout Premium Suite from our website to see and try many others source code samples for C#.

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 Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium 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 Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next