Merge PCL via Python

Merge PCL documents. Use Aspose.PDF for Python for .NET to modify PCL files programmatically

Merge PCL files Using Python for .NET

In order to merge PCL file, we’ll use Aspose.PDF for .NET API which is a feature-rich, powerful, and easy-to-use document manipulation API for python-net platform. A peculiar feature of Aspose.PDF is an API for combining PCL. The trait of this approach is that you only need to open the NuGet, search for Aspose.PDF, and install it without any special complex settings. Our Python Library can convert a document from any supported download format to any supported save format. Aspose.PDF for Python library provides fairly universal solutions that will help you solve the tasks of converting documents. Aspose.PDF supports the largest number of popular document formats, both for loading and saving. Draw your attention that the current section describes only popular conversions. The current page provides information about converting format to format. However, there are many combinations for converting your files. For a complete list of supported formats, see the section Supported File Formats. Check the details of Installing the Library on the Documentation pages. You may also use the following command from the Package Manager Console.

Python Package Manager Console

pip install aspose-pdf

How to Merge PCL files via Python


You need Aspose.PDF for Python via .NET to try the code in your environment.

  1. Open first document.
  2. Open second document.
  3. Add pages of second document to the first.
  4. Save concatenated output file

Python - example code to merge PCL file

Input file:

File not added

File not added

Output format:

Output file:

    PclLoadOptions option = new PclLoadOptions();
    Document document1= new Document("image1.pcl", option);
    Document document2= new Document("image2.pcl", option);
    // Add pages of second document to the first
    document1.Pages.Add(document2.Pages);
    document.Save(_dataDir+"ConcatenatedPDF.pdf");