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 /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>>
Methods from Deref<Target = Dict<'a>>
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)
.