API Reference > OdRx Classes > OdPdf2ImageConverter Class > OdPdf2ImageConverter Methods > OdPdf2ImageConverter::getPageSize Method
OdPdf2ImageConverter::getPageSize Method
Syntax
C++
virtual OdResult getPageSize(OdGsDCRect& rect) = 0;
Parameters 
Description 
OdGsDCRect& rect 
[out] Image size.
 

eOk if successful; eNullPtr if no PDF file is loaded; eWrongObjectType if the source file has wrong format; eInvalidIndex if the active page index is invalid; eNullIterator if the page iterator is not set; eNotHandled if PDFium module is not enabled.

Gets the image size on the active page of the PDF file (in pixels for default PDF resolution 72dpi).

Copyright © 2002–2020. Open Design Alliance. All rights reserved.