PPTX DOCX XLSX PDF ODP
Aspose.PDF  for C++
PDF

Merge XSLFO via C++

Merge XSLFO documents in a browser without needing Adobe Acrobat or Automation with C++.

Merge XSLFO files Using C++

In order to merge XSLFO file, we’ll use Aspose.PDF for C++ API which is a feature-rich, powerful, and easy-to-use document manipulation API for cpp platform. A peculiar feature of Aspose.PDF is an API for combining XSLFO. 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. Check the details of Installing the Library on the Documentation pages. You may also use the following command from the Package Manager Console.

Package Manager Console Command

                            
                                PM> Install-Package Aspose.PDF.Cpp
                            
                        

Convert XSLFO in C++

Try our XSLFO Converter to efficiently convert your documents. Convert XSLFO files programmatically. Choose from over 48 available formats to create your own convertible document. You can also convert to many other available formats. Converting XSLFO is just one of the ways our tool can convert your files. XSLFO conversion may seem complicated until you try a professional tool to do this task. Use C++ to convert XSLFO files with maximum quality and speed.

How to Merge XSLFO files via C++

You need Aspose.PDF for C++ 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

System Requirements

Just 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.
  • Development environment like Microsoft Visual Studio.
  • Aspose.PDF for C++ DLL referenced in your project.
 

C++ - example code to merge XSLFO file.

    String _dataDir("C:\\Samples\\Conversion\\");
    String infilenameXSL("c:\\samples\\employees.xslt");
    String infilenameXML("c:\\samples\\employees.xml");

    String outfilename("XMLFOtoPDF.pdf");

    // Instantiate XslFoLoadOption object
    auto options = new XslFoLoadOptions(infilenameXSL);
    // Set error handling strategy
    options->ParsingErrorsHandlingType = XslFoLoadOptions::ParsingErrorsHandlingTypes::ThrowExceptionImmediately;
    // Create Document object
    auto document1 = MakeObject<Document>(infilenameXML, options);
    auto document2 = MakeObject<Document>(infilenameXML, options);

    // Add pages of second document to the first
    document1->get_Pages()->Add(document2->get_Pages());

    // Save concatenated output file
    document1->Save(_dataDir+outputFileName);
 

Combine XSLFO in C++

Convert or combine multiple XSLFO into single file in C++ is not straightforward task without using 3rd party library. This page shows how to merge multiple XSLFO files into a single document using Aspose.PDF for C++. The example is written in Python but the API can be used in other programming languages. PDF files are merged such that the first one is joined at the end of the other document.
  • About Aspose.PDF for C++ API

    A PDF Processing Library to create cross-platform applications with the ability to generate, modify, convert, render, secure and print documents without using Adobe Acrobat. It supports converting various file formats into PDF including HTML and converting PDF documents into various output formats. Developers can easily render all HTML content in a single Page PDF as well as convert HTML files with SVG graphic tags to Tagged PDF files. .NET PDF API offers compression, table creation, graph & image functions, hyperlinks, stamp and watermarking tasks, extended security controls & custom font handling. Check our live demos to View PDF with following benefits. Using this library, you can implement rich capabilities for creating PDF files from scratch, or completely process existing PDF documents without installing Adobe Acrobat.

    Free App to View XSLFO