Struct pdf_writer::writers::ImageXObject[][src]

pub struct ImageXObject<'a> { /* fields omitted */ }
Expand description

Writer for an image XObject stream.

This struct is created by PdfWriter::image_xobject.

Implementations

Write the /Width attribute.

Write the /Height attribute.

Write the /ColorSpace attribute.

Required for all images except if using the JPXDecode filter. If this is an image soft mask, the color space must be DeviceGray. Must not be Pattern.

Write the /BitsPerComponent attribute. Required.

Required for all images except if using the JPXDecode filter.

Write the /Intent attribute. PDF 1.1+.

Write the /Interpolate attribute.

Write the /Alternates attribute. PDF 1.3+.

Images that may replace this image. The order is not relevant.

Start writing the /SMask attribute. PDF 1.4+.

Must not be used if this image already is an image soft mask.

Write the /SMaskInData attribute. PDF 1.5+.

May only be used for images that use the JPXDecode filter. If set to something other than Ignore, the SMask attribute must not be used.

Write the /Matte attribute for image soft masks. PDF 1.4+.

This shall be the matte color of the parent image encoded in its color space.

Methods from Deref<Target = Stream<'a>>

Write the /Filter attribute.

Methods from Deref<Target = Dict<'a>>

The number of written pairs.

Start writing a pair with an arbitrary value.

Write a pair with a primitive value.

This is a shorthand for dict.insert(key).primitive(value).

Write a sequence of pairs with primitive values.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.