/// Creates a new [PdfBitmapConfig] object with all settings initialized with their default values.
Creates a new [PdfBitmapConfig] object with all settings initialized with their default values.
Creates a new [ PdfBitmapConfig ] object with all settings initialized with their default values .
pub fn new() -> Self {
        PdfBitmapConfig {
            target_width: None,
            target_height: None,
            scale_width_factor: None,
            scale_height_factor: None,
            maximum_width: None,
            maximum_height: None,
            portrait_rotation: PdfBitmapRotation::None,
            portrait_rotation_do_rotate_constraints: false,
            landscape_rotation: PdfBitmapRotation::None,
            landscape_rotation_do_rotate_constraints: false,
            format: PdfBitmapFormat::BGRA,
            do_render_form_data: true,
            form_field_highlight: vec![],
            do_set_flag_render_annotations: true,
            do_set_flag_use_lcd_text_rendering: false,
            do_set_flag_no_native_text: false,
            do_set_flag_grayscale: false,
            do_set_flag_render_limited_image_cache: false,
            do_set_flag_render_force_half_tone: false,
            do_set_flag_render_for_printing: false,
            do_set_flag_render_no_smooth_text: false,
            do_set_flag_render_no_smooth_image: false,
            do_set_flag_render_no_smooth_path: false,
            do_set_flag_convert_fill_to_stroke: false,
            // We ask Pdfium to reverse its bitmap byte order from BGR8 to RGB8 in order
            // to make working with Image::DynamicImage easier after version 0.24. See:
            // https://github.com/ajrcarey/pdfium-render/issues/9
            do_set_flag_reverse_byte_order: true,
        }
    }
pub fn new ( ) -> Self { PdfBitmapConfig { target_width : None , target_height : None , scale_width_factor : None , scale_height_factor : None , maximum_width : None , maximum_height : None , portrait_rotation : PdfBitmapRotation :: None , portrait_rotation_do_rotate_constraints : false , landscape_rotation : PdfBitmapRotation :: None , landscape_rotation_do_rotate_constraints : false , format : PdfBitmapFormat :: BGRA , do_render_form_data : true , form_field_highlight : vec ! [ ] , do_set_flag_render_annotations : true , do_set_flag_use_lcd_text_rendering : false , do_set_flag_no_native_text : false , do_set_flag_grayscale : false , do_set_flag_render_limited_image_cache : false , do_set_flag_render_force_half_tone : false , do_set_flag_render_for_printing : false , do_set_flag_render_no_smooth_text : false , do_set_flag_render_no_smooth_image : false , do_set_flag_render_no_smooth_path : false , do_set_flag_convert_fill_to_stroke : false , // We ask Pdfium to reverse its bitmap byte order from BGR8 to RGB8 in order // to make working with Image::DynamicImage easier after version 0.24. See: // https://github.com/ajrcarey/pdfium-render/issues/9 do_set_flag_reverse_byte_order : true , } }
Creates a new [PdfBitmapConfig] object with all settings initialized with their default values.
Creates a new [ PdfBitmapConfig ] object with all settings initialized with their default values .