News Category

Convert PDF to PCL in C#/VB.NET

2019-03-06 07:45:19 Written by  support iceblue
Rate this item
(0 votes)

A PCL file is a Printer Command Language document. Printer Command Language is a page description language developed by HP as a printer protocol and has been widely supported in many printers now. Start from version 5.2.3, Spire.PDF supports converting PDF file to PCL format. There are six major levels of PCL, the PCL here refers to PCL 6 (PCL 6 Enhanced or PCL XL).

Example code

[C#]
using Spire.Pdf;

namespace PDFtoPCL
{
    class Program
    {
        static void Main(string[] args)
        {
            //Create a PdfDocument instance
            PdfDocument pdf = new PdfDocument();
            //Load the PDF file
            pdf.LoadFromFile("Input.pdf");
            //Save to PCL format
            pdf.SaveToFile("ToPCL.pcl", FileFormat.PCL);
        }
    }
}
[VB.NET]
Imports Spire.Pdf

Namespace PDFtoPCL
	Class Program
		Private Shared Sub Main(args As String())
			Dim pdf As PdfDocument = New PdfDocument()
    pdf.LoadFromFile("Input.pdf")
    pdf.SaveToFile("ToPCL.pcl", FileFormat.PCL)
		End Sub
	End Class
End Namespace

Additional Info

  • tutorial_title:
Last modified on Sunday, 26 September 2021 01:35