pub enum PageLabelStyle {
DecimalArabic,
UppercaseRoman,
LowercaseRoman,
UppercaseLetters,
LowercaseLetters,
None,
}Expand description
Page label numbering style
Variants§
DecimalArabic
Decimal arabic numerals (1, 2, 3, …)
UppercaseRoman
Uppercase roman numerals (I, II, III, IV, …)
LowercaseRoman
Lowercase roman numerals (i, ii, iii, iv, …)
UppercaseLetters
Uppercase letters (A, B, C, … AA, BB, …)
LowercaseLetters
Lowercase letters (a, b, c, … aa, bb, …)
None
No page numbers (labels consist only of prefix)
Implementations§
Source§impl PageLabelStyle
impl PageLabelStyle
Sourcepub fn to_pdf_name(&self) -> Option<&'static str>
pub fn to_pdf_name(&self) -> Option<&'static str>
Convert to PDF name per ISO 32000-1 §12.4.2 Table 159.
Mapping:
D— decimal arabicR— uppercase romanr— lowercase romanA— uppercase lettersa— lowercase letters
A conforming viewer uses the /S name to decide the case of the
rendered numeral, so this mapping must match the case implied by
Self::format — otherwise the Rust side and the rendered PDF
disagree on case.
Trait Implementations§
Source§impl Clone for PageLabelStyle
impl Clone for PageLabelStyle
Source§fn clone(&self) -> PageLabelStyle
fn clone(&self) -> PageLabelStyle
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 moreimpl Copy for PageLabelStyle
Source§impl Debug for PageLabelStyle
impl Debug for PageLabelStyle
Source§impl PartialEq for PageLabelStyle
impl PartialEq for PageLabelStyle
impl StructuralPartialEq for PageLabelStyle
Auto Trait Implementations§
impl Freeze for PageLabelStyle
impl RefUnwindSafe for PageLabelStyle
impl Send for PageLabelStyle
impl Sync for PageLabelStyle
impl Unpin for PageLabelStyle
impl UnsafeUnpin for PageLabelStyle
impl UnwindSafe for PageLabelStyle
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