## GraphicalPdfComparer::ComparePagesToPdf(const System::SharedPtr\<Page\>\&, const System::SharedPtr\<Page\>\&, const System::SharedPtr\<Document\>\&) method


Compares pages graphically. The comparison result is placed in a PDF document.

```cpp
void Aspose::Pdf::Comparison::GraphicalPdfComparer::ComparePagesToPdf(const System::SharedPtr<Page> &page1, const System::SharedPtr<Page> &page2, const System::SharedPtr<Document> &pdfDocument)
```


| Parameter | Type | Description |
| --- | --- | --- |
| page1 | const System::SharedPtr\<Page\>\& | The first page. |
| page2 | const System::SharedPtr\<Page\>\& | The second page. |
| pdfDocument | const System::SharedPtr\<Document\>\& | The pdf document instance. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Page](../../../aspose.pdf/page/)
* Class [Document](../../../aspose.pdf/document/)
* Class [GraphicalPdfComparer](../)
* Namespace [Aspose::Pdf::Comparison](../../)
* Library [Aspose.PDF for C++](../../../)
## GraphicalPdfComparer::ComparePagesToPdf(const System::SharedPtr\<Page\>\&, const System::SharedPtr\<Page\>\&, const System::String\&) method


Compares pages graphically. The comparison result is placed in a PDF document.

```cpp
void Aspose::Pdf::Comparison::GraphicalPdfComparer::ComparePagesToPdf(const System::SharedPtr<Page> &page1, const System::SharedPtr<Page> &page2, const System::String &resultPdfPath)
```


| Parameter | Type | Description |
| --- | --- | --- |
| page1 | const System::SharedPtr\<Page\>\& | The first page. |
| page2 | const System::SharedPtr\<Page\>\& | The second page. |
| resultPdfPath | const System::String\& | The path to target pdf file. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Page](../../../aspose.pdf/page/)
* Class [String](../../../system/string/)
* Class [GraphicalPdfComparer](../)
* Namespace [Aspose::Pdf::Comparison](../../)
* Library [Aspose.PDF for C++](../../../)
