PNG JPG BMP TIFF PCL
Aspose.PDF  for C++

Merge PCL Files using C++

PCL document merger using server-side C++ APIs.

How to Merge PCL File Using C++

In order to merge PCL file, we’ll use Aspose.PDF for C++ API which is a feature-rich, powerful and easy to use document merger API for C++ platform. You can download its latest version directly, just open NuGet package manager, search for Aspose.PDF.Cpp and install. You may also use the following command from the Package Manager Console.

Command


PM> Install-Package Aspose.PDF.Cpp

Steps for Merging PCL Files in C++

A basic document merging and concatenating with Aspose.PDF for C++ APIs can be done with just few lines of code.

  • Load both PCL files.
  • Use get_Pages() method to get document pages.
  • Use Add() function to merge.
  • Use save() method to save at specified path

System Requirements

Aspose.PDF for C++ supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with C++ Runtime Environment for Windows 32 bit, Windows 64 bit and Linux 64 bit.
  • Aspose.PDF for C++ DLL referenced in your project.
 

Merge PCL Files - C++

// Open first document
auto doc1 = MakeObject<Document>(u"file1.pcl");

// Open second document
auto doc2 = MakeObject<Document>(u"file2.pcl");

// Add pages of second document to the first
doc1->get_Pages()->Add(doc2->get_Pages());

// Save concatenated output file
doc1->Save(u"merged-output.pcl");
 
  • About Aspose.PDF for C++ API

    Aspose.PDF API can be used for PDF document manipulation and parsing within applications. One can create, modify, compress, secure, print or save PDF to TXT, HTML, PCL, XFA, XML, XPS, EPUB, TEX, Images and more formats. Aspose.PDF is a standalone API and it does not depend on any software including Adobe Acrobat.

    Online PCL Merger Live Demos

    Other Supported Merging Formats

    Using C++, One can also merge many other file formats including..

    CGM (Computer Graphics Metafile)
    EPUB (E-book Format)
    HTML (Hyper Text Markup Language)
    MD (Markdown Language)
    SVG (Scalable Vector Graphics)
    TEX (LaTeX Output Text)
    XML (Extensible Markup Language)
    XPS (XML Paper Specifications)
    XSLFO (XSL Formatting Objects)