pub struct VisualSignature {
pub page_number: usize,
pub rect: PDRectangle,
pub title: String,
pub details: String,
pub seal_image: Option<PDImageXObject>,
pub border_color: Color,
pub background_color: Option<Color>,
pub text_color: Color,
}Expand description
Configuration for visual signature representation on a page.
Fields§
§page_number: usize§rect: PDRectangle§title: String§details: String§seal_image: Option<PDImageXObject>§border_color: Color§background_color: Option<Color>§text_color: ColorImplementations§
Source§impl VisualSignature
impl VisualSignature
Sourcepub fn at_page(page_number: usize) -> Self
pub fn at_page(page_number: usize) -> Self
Initializes a visual signature at a given 1-based page number.
pub fn rect(self, llx: f64, lly: f64, urx: f64, ury: f64) -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn detail(self, details: impl Into<String>) -> Self
pub fn seal(self, image: PDImageXObject) -> Self
pub fn border_color(self, color: Color) -> Self
pub fn background_color(self, color: Color) -> Self
Sourcepub fn build_appearance_stream(
&self,
cos_doc: &mut COSDocument,
) -> PdfResult<ObjectId>
pub fn build_appearance_stream( &self, cos_doc: &mut COSDocument, ) -> PdfResult<ObjectId>
Creates an appearance stream (Form XObject) representing this visual signature.
Trait Implementations§
Source§impl Clone for VisualSignature
impl Clone for VisualSignature
Source§fn clone(&self) -> VisualSignature
fn clone(&self) -> VisualSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VisualSignature
impl RefUnwindSafe for VisualSignature
impl Send for VisualSignature
impl Sync for VisualSignature
impl Unpin for VisualSignature
impl UnsafeUnpin for VisualSignature
impl UnwindSafe for VisualSignature
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