Enum PdfConformanceLevel
- Namespace
- Syncfusion.Pdf
- Assembly
- Syncfusion.Pdf.Portable.dll
Specifies the Pdf document's Conformance-level.
public enum PdfConformanceLevel
Fields
None = 0
Specifies Default / No Conformance.
Pdf_A1A = 5
This PDF/A ISO standard [ISO 19005-1:2005] is based on Adobe PDF version 1.4 and This Level A conformance was intended to increase the accessibility of conforming files for physically impaired users by allowing assistive software, such as screen readers, to more precisely extract and interpret a file's contents.
Pdf_A1B = 1
This PDF/A ISO standard [ISO 19005-1:2005] is based on Adobe PDF version 1.4 and This Level B conformance indicates minimal compliance to ensure that the rendered visual appearance of a conforming file is preservable over the long term.
Pdf_A2A = 6
PDF/A-2 Standard is based on a PDF 1.7 (ISO 32000-1) and This Level A conformance was intended to increase the accessibility of conforming files for physically impaired users by allowing assistive software, such as screen readers, to more precisely extract and interpret a file's contents.
Pdf_A2B = 3
PDF/A-2 Standard is based on a PDF 1.7 (ISO 32000-1) which provides support for transparency effects and layers embedding of OpenType fonts
Pdf_A2U = 7
PDF/A-2 Standard is based on a PDF 1.7 (ISO 32000-1) and This Level U conformance represents Level B conformance (PDF/A-2b) with the additional requirement that all text in the document have Unicode mapping.
Pdf_A3A = 8
PDF/A-3 Standard is based on a PDF 1.7 (ISO 32000-1) which provides support for embedding the arbitrary file formats (XML, CSV, CAD, Word Processing documents) and This Level A conformance was intended to increase the accessibility of conforming files for physically impaired users by allowing assistive software, such as screen readers, to more precisely extract and interpret a file's contents.
Pdf_A3B = 4
PDF/A-3 Standard is based on a PDF 1.7 (ISO 32000-1) which provides support for embedding the arbitrary file formats (XML, CSV, CAD, Word Processing documents)
Pdf_A3U = 9
PDF/A-3 Standard is based on a PDF 1.7 (ISO 32000-1)
and This Level U conformance represents Level B conformance (PDF/A-3b) with the additional requirement that all text in the document have Unicode mapping.Pdf_A4 = 10
PDF/A-4 Standard is based on a PDF 2.0 (ISO 32000-2). The separate conformance levels a, b, and u are not used in PDF/A-4. Instead, PDF/A-4 encourages but does not require the addition of higher-level logical structures, and it requires Unicode mappings for all fonts.
Pdf_A4E = 11
PDF/A-4E Standard is based on a PDF 2.0 (ISO 32000-2). PDF/A-4e is intended for engineering documents and acts as a successor to the PDF/E-1 standard. PDF/A-4e supports Rich Media and 3D Annotations as well as embedded files.
Pdf_A4F = 12
PDF/A-4F Standard is based on a PDF 2.0 (ISO 32000-2). It allows embedding files in any other format.
Pdf_X1A2001 = 2
This PDF/X-1a:2001 ISO standard [ISO 15930-1] is based on Adobe PDF version 1.3 which uses only CMYK + Spot Color and this compliance to ensure that the contents will be reliably reproduced in the repress environment.
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1B);
//Add a page in the PDF document.
PdfPage page = document.Pages.Add();
//Create a 'Times New Roman' font.
Font font = new Font("Times New Roman", 10);
//Create the PDF font instance.
PdfFont pdfFont = new PdfTrueTypeFont(font, false);
//Draw text in the new page.
page.Graphics.DrawString("Essential PDF", pdfFont, PdfBrushes.Black, new PointF(10, 10));
//Save the document to disk.
document.Save("ConformanceLevel.pdf");
//Close the document.
//document.Close(true);
'Create a new PDF document.
Dim document As PdfDocument = New PdfDocument(PdfConformanceLevel.Pdf_A1B)
'Create a page to the document.
Dim page As PdfPage = document.Pages.Add()
'Create a 'Times New Roman' font
Dim font As Font = New Font("Times New Roman", 10)
'Create the PDF font instance.
Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False)
'Draw text in the new page.
page.Graphics.DrawString("Essential PDF", pdfFont, PdfBrushes.Black, New PointF(10, 10))
'Save the document to disk.
document.Save("ConformanceLevel.pdf")
'Close the document.
document.Close(True)