ByteScout PDF Suite - C# - Override resolution in rendered image with pdf renderer sdk - ByteScout

ByteScout PDF Suite – C# – Override resolution in rendered image with pdf renderer sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – C# – Override resolution in rendered image with pdf renderer sdk

override resolution in rendered image with pdf renderer sdk in C# using ByteScout PDF Suite

override resolution in rendered image with pdf renderer sdk in C#

An easy to understand guide to learn how to override resolution in rendered image with pdf renderer sdk in C#. ByteScout PDF Suite was made to help with override resolution in rendered image with pdf renderer sdk in C#. ByteScout PDF Suite is the set that includes 6 SDK products to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript.

C# code snippet like this for ByteScout PDF Suite works best when you need to quickly implement override resolution in rendered image with pdf renderer sdk in your C# application. To use override resolution in rendered image with pdf renderer sdk in your C# project or application just copy & paste the code and then run your app! C# application implementation mostly involves various stages of the software development so even if the functionality works please check it with your data and the production environment.

Our website gives free trial version of ByteScout PDF Suite. It includes all these source code samples with the purpose to assist you with your C# application implementation.

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.Diagnostics; using Bytescout.PDFRenderer; namespace OverrideResolutionInRenderedImage { class Program { static void Main(string[] args) { // Create an instance of Bytescout.PDFRenderer.RasterRenderer object and register it RasterRenderer renderer = new RasterRenderer(); renderer.RegistrationName = "demo"; renderer.RegistrationKey = "demo"; // Load PDF document renderer.LoadDocumentFromFile("multipage.pdf"); // Specify Rendering Options RenderingOptions renderingOptions = new RenderingOptions(); renderingOptions.ResolutionOverride = 300; for (int i = 0; i < renderer.GetPageCount(); i++) { // Render document page to 800x600 PNG image file. renderer.Save("image" + i + ".png", RasterImageFormat.PNG, i, 600, 800, renderingOptions); } // Cleanup renderer.Dispose(); // Open result document in default associated application (for demo purpose) ProcessStartInfo processStartInfo = new ProcessStartInfo("image0.png"); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

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

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next