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

double PoDoFo::PdfDestination::GetTop (  ) const [inline]

Get the destination Top position Destination must be of type XYZ, FitH, FitR, FitBH otherwise exception is thrown.

the Top position

Definition at line 328 of file PdfDestination.h.

References PoDoFo::ePdfError_WrongDestinationType, GetType(), and PODOFO_RAISE_ERROR.

    EPdfDestinationType tp = GetType();
    switch (tp) 
        case ePdfDestinationType_XYZ:
            return m_array[3].GetReal();
        case ePdfDestinationType_FitH:
        case ePdfDestinationType_FitBH:
            return m_array[2].GetReal();
        case ePdfDestinationType_FitR:
            return m_array[5].GetReal();
        case ePdfDestinationType_Fit:
        case ePdfDestinationType_FitV:
        case ePdfDestinationType_FitB:
        case ePdfDestinationType_FitBV:
        case ePdfDestinationType_Unknown:
            PODOFO_RAISE_ERROR( ePdfError_WrongDestinationType );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index