sempdf
sempdf v1.9.1Interfaces

Interface: PdfDocumentJson

sempdf v1.9.1


sempdf / PdfDocumentJson

Defined in: src/document-json.ts:122

A complete, JSON-serializable description of a PDF document. Pass it to renderDocumentJson to produce PDF bytes.

Properties

PropertyModifierTypeDescriptionDefined in
autoOutline?readonlyboolean | TemplateAutoOutlineOptionsAuto-generate a bookmarks tree from headings.src/document-json.ts:154
blocksreadonlyreadonly JsonBlock[]Body blocks. Required and non-empty. A block flows by default, or is placed at absolute coordinates when it carries an x/x1/cx anchor (see BlockPosition).src/document-json.ts:166
compress?readonlybooleanCompress content streams. Defaults to the engine default.src/document-json.ts:136
conformance?readonlyDocumentConformanceProfileValidate and emit a PDF/A or PDF/UA conformance profile.src/document-json.ts:134
defaultFont?readonlystringName of a declared font (or built-in font) used as the document default.src/document-json.ts:144
defaultPageSize?readonlyPageSizeDefault page size for pages that do not specify one.src/document-json.ts:140
defaults?readonlyTextDefaultsDocument-wide text defaults.src/document-json.ts:146
encryption?readonlyDocumentEncryptionOptionsPassword-encrypt the output.src/document-json.ts:138
fonts?readonlyreadonly JsonFontDeclaration[]Fonts to load and register before rendering.src/document-json.ts:142
footer?readonlyreadonly JsonBlock[]Blocks rendered at the bottom of every page (page tokens interpolated).src/document-json.ts:160
header?readonlyreadonly JsonBlock[]Blocks rendered at the top of every page (page tokens interpolated).src/document-json.ts:158
info?readonlyDocumentInfoInformation dictionary values.src/document-json.ts:126
language?readonlystringBCP 47 language tag for the document.src/document-json.ts:130
page?readonlyTemplatePageOptionsPage geometry and margins.src/document-json.ts:148
pageNumber?readonlyTemplatePageNumberOptionsAutomatic page numbering.src/document-json.ts:152
strictLayout?readonly| boolean | TemplateStrictLayoutOptionsStrict layout checks for fixed templates.src/document-json.ts:156
styles?readonlyTemplateStylesheetReusable named styles.src/document-json.ts:150
tagged?readonlybooleanEmit a tagged (accessible) structure tree.src/document-json.ts:132
title?readonlystringDocument title (information dictionary, XMP, and display-title preference).src/document-json.ts:124
xmpMetadata?readonlyXmpMetadataInputXMP metadata packet or structured input.src/document-json.ts:128

On this page