pub fn version(&self) -> PdfDocumentVersion {
        let mut version: c_int = 0;

        if self.bindings.FPDF_GetFileVersion(self.handle, &mut version) != 0 {
            match version {
                10 => PdfDocumentVersion::Pdf1_0,
                11 => PdfDocumentVersion::Pdf1_1,
                12 => PdfDocumentVersion::Pdf1_2,
                13 => PdfDocumentVersion::Pdf1_3,
                14 => PdfDocumentVersion::Pdf1_4,
                15 => PdfDocumentVersion::Pdf1_5,
                16 => PdfDocumentVersion::Pdf1_6,
                17 => PdfDocumentVersion::Pdf1_7,
                20 => PdfDocumentVersion::Pdf2_0,
                _ => PdfDocumentVersion::Other(version),
            }
        } else {
            PdfDocumentVersion::Unset
        }
    }
/// Returns the file version of this [PdfDocument].
Returns the file version of this [PdfDocument].
Returns the file version of this [ PdfDocument ] .
pub fn version(&self) -> PdfDocumentVersion {
        let mut version: c_int = 0;
        if self.bindings.FPDF_GetFileVersion(self.handle, &mut version) != 0 {
            match version {
                10 => PdfDocumentVersion::Pdf1_0,
                11 => PdfDocumentVersion::Pdf1_1,
                12 => PdfDocumentVersion::Pdf1_2,
                13 => PdfDocumentVersion::Pdf1_3,
                14 => PdfDocumentVersion::Pdf1_4,
                15 => PdfDocumentVersion::Pdf1_5,
                16 => PdfDocumentVersion::Pdf1_6,
                17 => PdfDocumentVersion::Pdf1_7,
                20 => PdfDocumentVersion::Pdf2_0,
                _ => PdfDocumentVersion::Other(version),
            }
        } else {
            PdfDocumentVersion::Unset
        }
    }
pub fn version ( & self ) -> PdfDocumentVersion { let mut version : c_int = 0 ; if self . bindings . FPDF_GetFileVersion ( self . handle , & mut version ) != 0 { match version { 10 => PdfDocumentVersion :: Pdf1_0 , 11 => PdfDocumentVersion :: Pdf1_1 , 12 => PdfDocumentVersion :: Pdf1_2 , 13 => PdfDocumentVersion :: Pdf1_3 , 14 => PdfDocumentVersion :: Pdf1_4 , 15 => PdfDocumentVersion :: Pdf1_5 , 16 => PdfDocumentVersion :: Pdf1_6 , 17 => PdfDocumentVersion :: Pdf1_7 , 20 => PdfDocumentVersion :: Pdf2_0 , _ => PdfDocumentVersion :: Other ( version ) , } } else { PdfDocumentVersion :: Unset } }
Returns the file version of this [PdfDocument].
Returns the file version of this [ PdfDocument ] .
&self
&self