Enum printpdf::pdf_conformance::PdfConformance
source · 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
impl PdfConformance
sourcepub fn get_identifier_string(&self) -> String
pub fn get_identifier_string(&self) -> String
Get the identifier string for PDF
sourcepub fn is_3d_content_allowed(&self) -> bool
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.
sourcepub fn is_video_content_allowed(&self) -> bool
pub fn is_video_content_allowed(&self) -> bool
Does this conformance level allow video
sourcepub fn is_audio_content_allowed(&self) -> bool
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.
sourcepub fn is_javascript_content_allowed(&self) -> bool
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.
sourcepub fn is_jpeg_content_allowed(&self) -> bool
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
sourcepub fn must_have_xmp_metadata(&self) -> bool
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
sourcepub fn must_have_icc_profile(&self) -> bool
pub fn must_have_icc_profile(&self) -> bool
Check if the conformance level must have an ICC Profile
sourcepub fn is_layering_allowed(&self) -> bool
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
impl Clone for PdfConformance
source§fn clone(&self) -> PdfConformance
fn clone(&self) -> PdfConformance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PdfConformance
impl Debug for PdfConformance
source§impl Default for PdfConformance
impl Default for PdfConformance
source§impl PartialEq for PdfConformance
impl PartialEq for PdfConformance
source§fn eq(&self, other: &PdfConformance) -> bool
fn eq(&self, other: &PdfConformance) -> bool
self
and other
values to be equal, and is used
by ==
.