Aspose::Pdf::Comparison::SideBySidePdfComparer::Compare method

SideBySidePdfComparer::Compare(const System::SharedPtr<Document>&, const System::SharedPtr<Document>&, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<SideBySideComparisonOptions>&) method

Compares two documents. The pages are compared one by one. The pages of the compared documents are copied one after another into the resulting document. First the first page from the first document, then the first page from the second document. Next is the second one from the first document and then the second one from the second document, etc. You can open it in Adobe Acrobat in Two-page view to see the changes side by side. Deletions are noted on the page on the left, and insertions are noted on the page on the right.

static System::SharedPtr<SideBySideDocsComparisonResult> Aspose::Pdf::Comparison::SideBySidePdfComparer::Compare(const System::SharedPtr<Document> &document1, const System::SharedPtr<Document> &document2, const System::SharedPtr<System::IO::Stream> &targetStream, const System::SharedPtr<SideBySideComparisonOptions> &options)
ParameterTypeDescription
document1const System::SharedPtr<Document>&The first document to compare.
document2const System::SharedPtr<Document>&The second document to compare.
targetStreamconst System::SharedPtr<System::IO::Stream>&The target stream to save a comparison result.
optionsconst System::SharedPtr<SideBySideComparisonOptions>&The comparison options.

ReturnValue

The comparison result.

See Also

SideBySidePdfComparer::Compare(const System::SharedPtr<Document>&, const System::SharedPtr<Document>&, const System::String&, const System::SharedPtr<SideBySideComparisonOptions>&) method

Compares two documents. The pages are compared one by one. The pages of the compared documents are copied one after another into the resulting document. First the first page from the first document, then the first page from the second document. Next is the second one from the first document and then the second one from the second document, etc. You can open it in Adobe Acrobat in Two-page view to see the changes side by side. Deletions are noted on the page on the left, and insertions are noted on the page on the right.

static System::SharedPtr<SideBySideDocsComparisonResult> Aspose::Pdf::Comparison::SideBySidePdfComparer::Compare(const System::SharedPtr<Document> &document1, const System::SharedPtr<Document> &document2, const System::String &targetPdfPath, const System::SharedPtr<SideBySideComparisonOptions> &options)
ParameterTypeDescription
document1const System::SharedPtr<Document>&The first document to compare.
document2const System::SharedPtr<Document>&The second document to compare.
targetPdfPathconst System::String&The path to PDF-file to save a comparison result.
optionsconst System::SharedPtr<SideBySideComparisonOptions>&The comparison options.

ReturnValue

The comparison result.

See Also

SideBySidePdfComparer::Compare(const System::SharedPtr<Page>&, const System::SharedPtr<Page>&, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<SideBySideComparisonOptions>&) method

Compares two pages. The result is saved in a PDF document in which the first page is written first, and then the second. You can open it in Adobe Acrobat in Two-page view to see the changes side by side. Deletions are noted on the page on the left, and insertions are noted on the page on the right.

static System::SharedPtr<SideBySidePagesComparisonResult> Aspose::Pdf::Comparison::SideBySidePdfComparer::Compare(const System::SharedPtr<Page> &page1, const System::SharedPtr<Page> &page2, const System::SharedPtr<System::IO::Stream> &targetStream, const System::SharedPtr<SideBySideComparisonOptions> &options)
ParameterTypeDescription
page1const System::SharedPtr<Page>&The first page to compare.
page2const System::SharedPtr<Page>&The first page to compare.
targetStreamconst System::SharedPtr<System::IO::Stream>&The target stream to save a comparison result.
optionsconst System::SharedPtr<SideBySideComparisonOptions>&The comparison options.

ReturnValue

The comparison result.

See Also

SideBySidePdfComparer::Compare(const System::SharedPtr<Page>&, const System::SharedPtr<Page>&, const System::String&, const System::SharedPtr<SideBySideComparisonOptions>&) method

Compares two pages. The result is saved in a PDF document in which the first page is written first, and then the second. You can open it in Adobe Acrobat in Two-page view to see the changes side by side. Deletions are noted on the page on the left, and insertions are noted on the page on the right.

static System::SharedPtr<SideBySidePagesComparisonResult> Aspose::Pdf::Comparison::SideBySidePdfComparer::Compare(const System::SharedPtr<Page> &page1, const System::SharedPtr<Page> &page2, const System::String &targetPdfPath, const System::SharedPtr<SideBySideComparisonOptions> &options)
ParameterTypeDescription
page1const System::SharedPtr<Page>&The first page to compare.
page2const System::SharedPtr<Page>&The first page to compare.
targetPdfPathconst System::String&The path to PDF-file to save a comparison result.
optionsconst System::SharedPtr<SideBySideComparisonOptions>&The comparison options.

ReturnValue

The comparison result.

See Also