pub struct PrintSpecification {
pub bleed: Option<BleedBox>,
pub crop_marks: CropMarkStyle,
pub registration_marks: bool,
pub color_bars: bool,
pub page_information: bool,
pub trim_box: Option<PageBox>,
pub media_box: Option<PageBox>,
pub art_box: Option<PageBox>,
pub spot_colors: Vec<SpotColor>,
pub color_space: ColorSpace,
}Expand description
Print specifications for professional output.
Fields§
§bleed: Option<BleedBox>Bleed area beyond the trim edge.
crop_marks: CropMarkStyleCrop mark style.
registration_marks: boolRegistration mark settings.
color_bars: boolColor bars for press calibration.
page_information: boolPage information (file name, date, etc.).
trim_box: Option<PageBox>Trim box dimensions (final page size after cutting).
media_box: Option<PageBox>Media box dimensions (physical media size).
art_box: Option<PageBox>Art box dimensions (intended content area).
spot_colors: Vec<SpotColor>Spot colors used in the document.
color_space: ColorSpaceDefault color space for the document.
Implementations§
Source§impl PrintSpecification
impl PrintSpecification
Sourcepub fn with_bleed(self, bleed: BleedBox) -> Self
pub fn with_bleed(self, bleed: BleedBox) -> Self
Set the bleed area.
Sourcepub fn with_crop_marks(self, style: CropMarkStyle) -> Self
pub fn with_crop_marks(self, style: CropMarkStyle) -> Self
Set the crop mark style.
Sourcepub fn with_registration_marks(self) -> Self
pub fn with_registration_marks(self) -> Self
Enable registration marks.
Sourcepub fn with_color_bars(self) -> Self
pub fn with_color_bars(self) -> Self
Enable color bars.
Sourcepub fn with_page_information(self) -> Self
pub fn with_page_information(self) -> Self
Enable page information.
Sourcepub fn with_color_space(self, color_space: ColorSpace) -> Self
pub fn with_color_space(self, color_space: ColorSpace) -> Self
Set the color space.
Sourcepub fn with_spot_color(self, spot_color: SpotColor) -> Self
pub fn with_spot_color(self, spot_color: SpotColor) -> Self
Add a spot color.
Sourcepub fn commercial_print() -> Self
pub fn commercial_print() -> Self
Create a standard commercial print specification.
Trait Implementations§
Source§impl Clone for PrintSpecification
impl Clone for PrintSpecification
Source§fn clone(&self) -> PrintSpecification
fn clone(&self) -> PrintSpecification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrintSpecification
impl Debug for PrintSpecification
Source§impl Default for PrintSpecification
impl Default for PrintSpecification
Source§impl<'de> Deserialize<'de> for PrintSpecification
impl<'de> Deserialize<'de> for PrintSpecification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PrintSpecification
impl PartialEq for PrintSpecification
Source§impl Serialize for PrintSpecification
impl Serialize for PrintSpecification
impl StructuralPartialEq for PrintSpecification
Auto Trait Implementations§
impl Freeze for PrintSpecification
impl RefUnwindSafe for PrintSpecification
impl Send for PrintSpecification
impl Sync for PrintSpecification
impl Unpin for PrintSpecification
impl UnsafeUnpin for PrintSpecification
impl UnwindSafe for PrintSpecification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more