What's new from C++

What’s new in Aspose.PDF 22.7

The Skia version used is updated.

What’s new in Aspose.PDF 22.5

Support of XFA forms in PDF documents was implemented.

What’s new in Aspose.PDF 22.4

The new version of Aspose.PDF for C++ has a codebase of Aspose.PDF for .Net 22.4 and Aspose.Imaging 22.4.

  • the System::Drawing::GetThumbnailImage() method was implemented;
  • the RegionDataNodeRect constructor was optimized;
  • the 1 bit per pixel black-and-white image loading was fixed.

What’s new in Aspose.PDF 22.3

The method overloads were added to numerous classes. These support ArrayView-typed parameters where only ArrayPtr was supported previously.

What’s new in Aspose.PDF 22.1

The new version of Aspose.PDF for C++ has a codebase of Aspose.PDF for .Net 22.1:

  • the new implementation for System::Xml was provided. Previously, we had custom implementation which was based on the libxml2 and libxslt libraries. The new version is based on the ported CoreFX code

  • the double-conversion library was upgraded to 3.1.7 version

  • Dll files are signed with Aspose certificate

What’s new in Aspose.PDF 21.10

Aspose.PDF for C++ support feature to convert SVG to PDF format

The following code snippet shows the process of converting SVG file into PDF format with Aspose.PDF for C++.

void ConvertSVGtoPDF()
{
    std::clog << "SVG to PDF convert: Start" << std::endl;

    String _dataDir("C:\\Samples\\Conversion\\");
    String infilename("sample.svg");
    String outfilename("ImageToPDF-SVG.pdf");

    auto options = MakeObject<SvgLoadOptions>();
    try {
    auto document = MakeObject<Document>(_dataDir + infilename, options);
    document->Save(_dataDir + outfilename);
    }
    catch (System::Exception ex) {
    std::cerr << ex->get_Message() << std::endl;
    }
    std::clog << "SVG to PDF convert: Finish" << std::endl;
}

–°onsider an example with advanced features:

void ConvertSVGtoPDF_Advanced()
{
    std::clog << "SVG to PDF convert: Start" << std::endl;

    String _dataDir("C:\\Samples\\Conversion\\");
    String infilename("Sweden-Royal-flag-grand-coa.svg");
    String outfilename("ImageToPDF-SVG.pdf");

    auto options = MakeObject<SvgLoadOptions>();
    options->set_AdjustPageSize(true);
    options->ConversionEngine = SvgLoadOptions::ConversionEngines::NewEngine;

    try {
    auto document = MakeObject<Document>(_dataDir + infilename, options);
    document->Save(_dataDir + outfilename);
    }
    catch (System::Exception ex) {
    std::cerr << ex->get_Message() << std::endl;
    }

    std::clog << "SVG to PDF convert: Finish" << std::endl;
}

What’s new in Aspose.PDF 21.4

Saving PDF documents to HTML format has been implemented

Aspose.PDF for C++ support the features to convert a PDF file into HTML.

#include "Aspose.PDF.Cpp/Document.h"
#include "Aspose.PDF.Cpp/SaveFormat.h"

using namespace System;
using namespace Aspose::Pdf;

int main()
{
    auto doc = MakeObject<Document>(u"e:\\sample.pdf");
    doc->Save(u"e:\\sample.html", SaveFormat::Html);
}