Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

int PoDoFo::PdfPage::GetRotation (  ) const [virtual]

Get the current page rotation (if any).

Returns:
int 0, 90, 180 or 270

Definition at line 260 of file PdfPage.cpp.

References GetInheritedKeyFromObject(), PoDoFo::PdfVariant::GetNumber(), PoDoFo::PdfElement::GetObject(), and PoDoFo::PdfVariant::IsNumber().

Referenced by PoDoFo::PdfXObject::PdfXObject().

{ 
    int rot = 0;
    
    const PdfObject* pObj = GetInheritedKeyFromObject( "Rotate", this->GetObject() ); 
    if ( pObj && pObj->IsNumber() )
        rot = static_cast<int>(pObj->GetNumber());
    
    return rot;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index