ByteScout PDF Renderer SDK - C# - Override Resolution in Rendered Image - ByteScout

ByteScout PDF Renderer SDK – C# – Override Resolution in Rendered Image

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Renderer SDK – C# – Override Resolution in Rendered Image

override resolution in rendered image in C# with ByteScout PDF Renderer SDK

override resolution in rendered image in C#

Every ByteScout tool contains example C# source codes that you can find here or in the folder with installed ByteScout product. ByteScout PDF Renderer SDK was made to help with override resolution in rendered image in C#. ByteScout PDF Renderer SDK is the SDK for rendering of PDF into high-quality thumbnails and images. Includes various functions like batch processing, PNG, TIFF output. Can be used from web and desktop applications.

C#, code samples for C#, developers help to speed up the application development and writing a code when using ByteScout PDF Renderer SDK. Follow the instruction from the scratch to work and copy and paste code for C# into your editor. This basic programming language sample code for C# will do the whole work for you in implementing override resolution in rendered image in your app.

ByteScout PDF Renderer SDK is available as free trial. You may get it from our website along with all other source code samples for C# applications.

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

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); } } }

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

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout PDF Renderer SDK Home Page

Explore ByteScout PDF Renderer SDK Documentation

Get ByteScout PDF Renderer SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next