Trait pdf_extract::OutputDev
[−]
[src]
pub trait OutputDev { fn begin_page(
&mut self,
page_num: u32,
media_box: &MediaBox,
art_box: Option<(f64, f64, f64, f64)>
); fn end_page(&mut self); fn output_character(
&mut self,
x: f64,
y: f64,
width: f64,
font_size: f64,
char: &str
); fn begin_word(&mut self); fn end_word(&mut self); fn end_line(&mut self); fn stroke(
&mut self,
ctm: &Transform2D<f64>,
colorspace: &ColorSpace,
color: &[f64],
&Path
) { ... } fn fill(
&mut self,
ctm: &Transform2D<f64>,
colorspace: &ColorSpace,
color: &[f64],
&Path
) { ... } }
Required Methods
fn begin_page(
&mut self,
page_num: u32,
media_box: &MediaBox,
art_box: Option<(f64, f64, f64, f64)>
)
&mut self,
page_num: u32,
media_box: &MediaBox,
art_box: Option<(f64, f64, f64, f64)>
)
fn end_page(&mut self)
fn output_character(
&mut self,
x: f64,
y: f64,
width: f64,
font_size: f64,
char: &str
)
&mut self,
x: f64,
y: f64,
width: f64,
font_size: f64,
char: &str
)
fn begin_word(&mut self)
fn end_word(&mut self)
fn end_line(&mut self)
Provided Methods
fn stroke(
&mut self,
ctm: &Transform2D<f64>,
colorspace: &ColorSpace,
color: &[f64],
&Path
)
&mut self,
ctm: &Transform2D<f64>,
colorspace: &ColorSpace,
color: &[f64],
&Path
)
fn fill(
&mut self,
ctm: &Transform2D<f64>,
colorspace: &ColorSpace,
color: &[f64],
&Path
)
&mut self,
ctm: &Transform2D<f64>,
colorspace: &ColorSpace,
color: &[f64],
&Path
)
Implementors
impl<'a> OutputDev for HTMLOutput<'a>
impl<'a> OutputDev for SVGOutput<'a>
impl<W: ConvertToFmt> OutputDev for PlainTextOutput<W>