Click or drag to resize
Pdf Library for .NET

PdfDocument(PdfStandard) Constructor

Creates an empty PDF document that conforms to the specified PDF standard — use this when you want from-scratch output to be PDF/A (archival) or PDF/X (print exchange) compliant. Equivalent to PdfDocument when pdfStandard is Full.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
public PdfDocument(
	PdfStandard pdfStandard
)

Parameters

pdfStandard  PdfStandard
Target conformance level: any PDF/A level or PdfX; Full produces a standard (non-conformant) document.
Remarks

Conformance level must be chosen before any pages are added: the conformance metadata and the output intent are written into the document when it is created.

PDF/A-2B or later is recommended for new archives.

Fonts. PDF/A and PDF/X require every font to be embedded. A standard font (Helvetica, Times, Courier) drawn on such a document is drawn from a bundled face with the same metrics, subset-embedded; Symbol and ZapfDingbats have no bundled equivalent and are refused. To choose the face, load a TrueType / OpenType font with CreateFromFile(String, Single), CreateFromStream(Stream, Single), CreateFromBytes(Byte, Single) or CreateFromSystemFont(String, Single).

Example
PdfDocument document = new PdfDocument(PdfStandard.PdfA2B);
PdfPage page = document.AddPage();
document.Save("archive.pdf");
document.Close();
See Also