pub(crate) fn from_pdfium(form_field_type: u32) -> Result<PdfFormFieldType, PdfiumError> {
        match form_field_type {
            FPDF_FORMFIELD_UNKNOWN => Ok(PdfFormFieldType::Unknown),
            FPDF_FORMFIELD_PUSHBUTTON => Ok(PdfFormFieldType::PushButton),
            FPDF_FORMFIELD_CHECKBOX => Ok(PdfFormFieldType::Checkbox),
            FPDF_FORMFIELD_RADIOBUTTON => Ok(PdfFormFieldType::RadioButton),
            FPDF_FORMFIELD_COMBOBOX => Ok(PdfFormFieldType::ComboBox),
            FPDF_FORMFIELD_LISTBOX => Ok(PdfFormFieldType::ListBox),
            FPDF_FORMFIELD_TEXTFIELD => Ok(PdfFormFieldType::TextField),
            FPDF_FORMFIELD_SIGNATURE => Ok(PdfFormFieldType::Signature),
            _ => Err(PdfiumError::UnknownFormFieldType),
        }
    }
// The from_pdfium() function is not currently used, but we expect it to be in future
The from_pdfium() function is not currently used, but we expect it to be in future
The from_pdfium () function is not currently used but we expect it to be in future
pub(crate) fn from_pdfium(form_field_type: u32) -> Result<PdfFormFieldType, PdfiumError> {
        match form_field_type {
            FPDF_FORMFIELD_UNKNOWN => Ok(PdfFormFieldType::Unknown),
            FPDF_FORMFIELD_PUSHBUTTON => Ok(PdfFormFieldType::PushButton),
            FPDF_FORMFIELD_CHECKBOX => Ok(PdfFormFieldType::Checkbox),
            FPDF_FORMFIELD_RADIOBUTTON => Ok(PdfFormFieldType::RadioButton),
            FPDF_FORMFIELD_COMBOBOX => Ok(PdfFormFieldType::ComboBox),
            FPDF_FORMFIELD_LISTBOX => Ok(PdfFormFieldType::ListBox),
            FPDF_FORMFIELD_TEXTFIELD => Ok(PdfFormFieldType::TextField),
            FPDF_FORMFIELD_SIGNATURE => Ok(PdfFormFieldType::Signature),
            _ => Err(PdfiumError::UnknownFormFieldType),
        }
    }
pub ( crate ) fn from_pdfium ( form_field_type : u32 ) -> Result < PdfFormFieldType , PdfiumError > { match form_field_type { FPDF_FORMFIELD_UNKNOWN => Ok ( PdfFormFieldType :: Unknown ) , FPDF_FORMFIELD_PUSHBUTTON => Ok ( PdfFormFieldType :: PushButton ) , FPDF_FORMFIELD_CHECKBOX => Ok ( PdfFormFieldType :: Checkbox ) , FPDF_FORMFIELD_RADIOBUTTON => Ok ( PdfFormFieldType :: RadioButton ) , FPDF_FORMFIELD_COMBOBOX => Ok ( PdfFormFieldType :: ComboBox ) , FPDF_FORMFIELD_LISTBOX => Ok ( PdfFormFieldType :: ListBox ) , FPDF_FORMFIELD_TEXTFIELD => Ok ( PdfFormFieldType :: TextField ) , FPDF_FORMFIELD_SIGNATURE => Ok ( PdfFormFieldType :: Signature ) , _ => Err ( PdfiumError :: UnknownFormFieldType ) , } }
The from_pdfium() function is not currently used, but we expect it to be in future
The from_pdfium () function is not currently used but we expect it to be in future
form_field_type
u32
form_field_type
u32