pub enum PdfConformance {
Show 20 variants A1B_2005_PDF_1_4, A1A_2005_PDF_1_4, A2_2011_PDF_1_7, A2A_2011_PDF_1_7, A2B_2011_PDF_1_7, A2U_2011_PDF_1_7, A3_2012_PDF_1_7, UA_2014_PDF_1_6, X1A_2001_PDF_1_3, X3_2002_PDF_1_3, X1A_2003_PDF_1_4, X3_2003_PDF_1_4, X4_2010_PDF_1_4, X4P_2010_PDF_1_6, X5G_2010_PDF_1_6, X5PG_2010_PDF_1_6, X5N_2010_PDF_1_6, E1_2008_PDF_1_6, VT_2010_PDF_1_4, Custom(CustomPdfConformance),
}
Expand description

List of (relevant) PDF versions Please note the difference between PDF/A (archiving), PDF/UA (universal acessibility), PDF/X (printing), PDF/E (engineering / CAD), PDF/VT (large volume transactions with repeated content)

Variants§

§

A1B_2005_PDF_1_4

PDF/A-1b basic PDF, many features restricted

§

A1A_2005_PDF_1_4

PDF/A-1a language specification, hierarchical document structure, character mappings to unicode, descriptive text for images

§

A2_2011_PDF_1_7

PDF/A-2:2011 - JPEG compression, transpareny, layering, OpenType fonts

§

A2A_2011_PDF_1_7

PDF/A-2a:2011

§

A2B_2011_PDF_1_7

PDF/A-2b:2011

§

A2U_2011_PDF_1_7

PDF/A-2u:2011 - requires all text to be Unicode

§

A3_2012_PDF_1_7

PDF/A-3 - like A2 but with embedded files (XML, CAD, etc.)

§

UA_2014_PDF_1_6

PDF/UA-1 extra functions for accessibility (blind, screenreaders, search, dynamic layout)

§

X1A_2001_PDF_1_3

PDF/X-1a:2001 no ICC profiles

§

X3_2002_PDF_1_3

PDF/X-3:2002 allows CMYK, spot, calibrated (managed) RGB, CIELAB, + ICC Profiles

§

X1A_2003_PDF_1_4

PDF/X-1a:2003 Revision of PDF/X-1a:2001 based on PDF 1.4

§

X3_2003_PDF_1_4

PDF/X-3:2003 Revision of PDF/X-3:2002 based on PDF 1.4

§

X4_2010_PDF_1_4

PDF/X-4:2010 Colour-managed, CMYK, gray, RGB or spot colour data are supported as well as PDF transparency and optional content (layers)

§

X4P_2010_PDF_1_6

PDF/X-4p:2010 Same as the above X-4:2010, but may reference an ICC profile from an external file, and it’s based on PDF 1.6

§

X5G_2010_PDF_1_6

PDF/X-5g:2010 An extension of PDF/X-4 that enables the use of external graphical content. This can be described as OPI-like (Open Prepress Interface) workflows. Specifically this allows graphics to be referenced that are outside the PDF

§

X5PG_2010_PDF_1_6

PDF/X-5pg An extension of PDF/X-4p that enables the use of external graphical content in conjunction with a reference to an external ICC Profile for the output intent.

§

X5N_2010_PDF_1_6

PDF/X-5n An extension of PDF/X-4p that allows the externally supplied ICC Profile for the output intent to use a color space other than Greyscale, RGB and CMYK.

§

E1_2008_PDF_1_6

PDF/E-1:2008 3D Objects, geospatial, etc.

§

VT_2010_PDF_1_4

PDF/VT-1:2010 Basically a way to make a incomplete PDF as a template and the RIP program is set up in a way that it can easily inject data into the PDF, for high-throughput PDFs (like postcards, stamps), that require customization before printing

§

Custom(CustomPdfConformance)

Custom PDF conformance, to allow / disallow options. This allows for making very small documents, for example

Implementations§

source§

impl PdfConformance

source

pub fn get_identifier_string(&self) -> String

Get the identifier string for PDF

source

pub fn is_3d_content_allowed(&self) -> bool

STUB: Detects if the PDF has 3D content, but the conformance to the given PDF standard does not allow it.

source

pub fn is_video_content_allowed(&self) -> bool

Does this conformance level allow video

source

pub fn is_audio_content_allowed(&self) -> bool

STUB: Detects if the PDF has audio content, but the conformance to the given PDF standard does not allow it.

source

pub fn is_javascript_content_allowed(&self) -> bool

STUB: Detects if the PDF has 3D content, but the conformance to the given PDF standard does not allow it.

source

pub fn is_jpeg_content_allowed(&self) -> bool

STUB: Detects if the PDF has JPEG images, but the conformance to the given PDF standard does not allow it

source

pub fn must_have_xmp_metadata(&self) -> bool

Detects if the PDF must have XMP metadata if it has to conform to the given PDF Standard

source

pub fn must_have_icc_profile(&self) -> bool

Check if the conformance level must have an ICC Profile

source

pub fn is_layering_allowed(&self) -> bool

STUB: Detects if the PDF has layering (optional content groups), but the conformance to the given PDF standard does not allow it.

Trait Implementations§

source§

impl Clone for PdfConformance

source§

fn clone(&self) -> PdfConformance

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PdfConformance

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PdfConformance

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl PartialEq for PdfConformance

source§

fn eq(&self, other: &PdfConformance) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for PdfConformance

source§

impl StructuralEq for PdfConformance

source§

impl StructuralPartialEq for PdfConformance

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Finish for T

source§

fn finish(self)

Does nothing but move self, equivalent to drop.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.