Aspose::Words::Document::GetPageInfo method

Document::GetPageInfo method

Gets the page size, orientation and other information about a page that might be useful for printing or rendering.

System::SharedPtr<Aspose::Words::Rendering::PageInfo> Aspose::Words::Document::GetPageInfo(int32_t pageIndex)
ParameterTypeDescription
pageIndexint32_tThe 0-based page index.

Examples

Shows how to check whether the page is in color or not.

auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Document.docx");

// Check that the first page of the document is not colored.
ASSERT_FALSE(doc->GetPageInfo(0)->get_Colored());

See Also