 |
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.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntaxpublic PdfDocument(
PdfStandard pdfStandard
)
Public Sub New (
pdfStandard As PdfStandard
)
Parameters
- pdfStandard PdfStandard
- Target conformance level: any PDF/A level or
PdfX; Full produces a standard
(non-conformant) document.
RemarksConformance 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).
ExamplePdfDocument document = new PdfDocument(PdfStandard.PdfA2B);
PdfPage page = document.AddPage();
document.Save("archive.pdf");
document.Close();Dim document As New PdfDocument(PdfStandard.PdfA2B)
Dim page As PdfPage = document.AddPage()
document.Save("archive.pdf")
document.Close()
See Also