HTML JPG PDF XML PCL
net  Product Family
JPEG

Convert PCL to JPEG via C#

Export PCL documents to multiple formats including JPEG on .NET Framework, .NET Core, and PHP, VBScript, Delphi, C++ via COM Interop.

How to Convert PCL to JPEG Using C#

In order to convert PCL to JPEG, we’ll use Aspose.PDF for .NET API which is a feature-rich, powerful and easy to use document manipulation and conversion API for C# platform. Open NuGet package manager, search for Aspose.PDF and install. You may also use the following command from the Package Manager Console.

Package Manager Console Command


    PM> Install-Package Aspose.PDF

Steps to Convert PCL to JPEG via C#

.NET developers can easily load & convert PCL files to JPEG in just a few lines of code.

  1. Load PCL file with an instance of Document class
  2. Create & set the instance of JpegDevice class with Size & Resolution
  3. Call JpegDevice.Process method with page index & output file path as parameters

System Requirements

Before running the .NET conversion sample code, make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, and PHP, VBScript, Delphi, C++ via COM Interop.
  • Development environment like Microsoft Visual Studio.
  • Aspose.PDF for .NET DLL referenced in your project.
 

This sample code shows PCL to JPEG C# Conversion

// load PCL with an instance of Document
var document = new Document("template.pcl", new PclLoadOptions());

// create an object of JpegDevice
var renderer = new Aspose.Pdf.Devices.JpegDevice();

// convert a particular page and save the image in JPEG format
renderer.Process(document.Pages[1], "output.jpeg");
 
  • Free App to Convert PCL to JPEG