Struct jpeg_to_pdf::JpegToPdf[][src]

pub struct JpegToPdf { /* fields omitted */ }

Creates a PDF from JPEG images.

Implementations

impl JpegToPdf[src]

pub fn new() -> JpegToPdf[src]

pub fn add_image(self, image: Vec<u8>) -> JpegToPdf[src]

Add an image to the PDF output.

pub fn add_images(self, images: impl IntoIterator<Item = Vec<u8>>) -> JpegToPdf[src]

Add one or more images to the PDF output.

pub fn set_dpi(self, dpi: f64) -> JpegToPdf[src]

Set the DPI scaling of the PDF output.

pub fn strip_exif(self, strip_exif: bool) -> JpegToPdf[src]

Strip EXIF metadata from the provided images.

Some PDF renderers have issues rendering JPEG images that still have EXIF metadata.

pub fn set_document_title(self, document_title: impl Into<String>) -> JpegToPdf[src]

Sets the title of the PDF output.

pub fn create_pdf(self, out: &mut BufWriter<impl Write>) -> Result<(), Error>[src]

Writes the PDF output to out.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.