Browse our Products

Aspose.PDF for C++ 26.7 Release Notes

Changes and Improvements

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

All non primitive type parameters are passed as const references.

Side-by-Side PDF Comparison Results

Aspose.PDF for C++ 26.7 enhances ‘SideBySidePdfComparer’ by returning comparison results from both document and page comparison methods. The ‘Compare’ methods now return ‘SideBySideDocsComparisonResult’ or ‘SideBySidePagesComparisonResult’, allowing you to determine whether differences were found using ‘HasChanges’ and inspect detailed changes through ‘FirstDocChanges’, ‘SecondDocChanges’, and ‘FullChanges’.

Public API and Backward Incompatible Changes

  • class Aspose.Pdf.Comparison.EditContainer : public System::Object

    • int32_t get_Id() const;
    • const System::SharedPtr<DiffOperation>& get_Operation() const;
    • const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Rectangle>>>& get_Rects() const;
  • class Aspose.Pdf.Comparison.SideBySideDocsComparisonResult : public System::Object

    • bool get_HasChanges() const;
    • const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<EditContainer>>>>>& get_FirstDocChanges() const;
    • const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<EditContainer>>>>>& get_SecondDocChanges() const;
    • const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<DiffOperation>>>>>& get_FullChanges() const;
    • SideBySideDocsComparisonResult(bool hasChanges, const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<EditContainer>>>>>& firstDocChanges, const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<EditContainer>>>>>& secondDocChanges, const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<DiffOperation>>>>>& fullChanges);
  • class Aspose.Pdf.Comparison.SideBySidePagesComparisonResult : public System::Object

    • bool get_HasChanges() const;
    • const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<EditContainer>>>& get_FirstPageChanges() const;
    • const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<EditContainer>>>& get_SecondPageChanges() const;
    • const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<DiffOperation>>>& get_FullChanges() const;
    • SideBySidePagesComparisonResult(bool hasChanges, const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<EditContainer>>>& firstPageChanges, const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<EditContainer>>>& secondPageChanges, const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<DiffOperation>>>& fullChanges);
  • class ASPOSE_PDF_SHARED_CLASS SideBySidePdfComparer

    • static System::SharedPtr<SideBySidePagesComparisonResult> Compare(const System::SharedPtr<Page>& page1, const System::SharedPtr<Page>& page2, const System::String& targetPdfPath, const System::SharedPtr<SideBySideComparisonOptions>& options);
    • static System::SharedPtr<SideBySideDocsComparisonResult> Compare(const System::SharedPtr<Document>& document1, const System::SharedPtr<Document>& document2, const System::String& targetPdfPath, const System::SharedPtr<SideBySideComparisonOptions>& options);
    • static System::SharedPtr<SideBySidePagesComparisonResult> Compare(const System::SharedPtr<Page>& page1, const System::SharedPtr<Page>& page2, const System::SharedPtr<System::IO::Stream>& targetStream, const System::SharedPtr<SideBySideComparisonOptions>& options);
    • static System::SharedPtr<SideBySideDocsComparisonResult> Compare(const System::SharedPtr<Document>& document1, const System::SharedPtr<Document>& document2, const System::SharedPtr<System::IO::Stream>& targetStream, const System::SharedPtr<SideBySideComparisonOptions>& options);

Complete details of API can be referenced from Aspose.PDF for C++ API Reference Guide.