Skip to content

a11ydocs v1.7.0


a11ydocs / PdfDocumentJson

Interface: PdfDocumentJson

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

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:153
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 JsonPositionedBlock).src/document-json.ts:165
compress?readonlybooleanCompress content streams. Defaults to the engine default.src/document-json.ts:135
conformance?readonlyDocumentConformanceProfileValidate and emit a PDF/A or PDF/UA conformance profile.src/document-json.ts:133
defaultFont?readonlystringName of a declared font (or built-in font) used as the document default.src/document-json.ts:143
defaultPageSize?readonlyPageSizeDefault page size for pages that do not specify one.src/document-json.ts:139
defaults?readonlyTextDefaultsDocument-wide text defaults.src/document-json.ts:145
encryption?readonlyDocumentEncryptionOptionsPassword-encrypt the output.src/document-json.ts:137
fonts?readonlyreadonly JsonFontDeclaration[]Fonts to load and register before rendering.src/document-json.ts:141
footer?readonlyreadonly JsonBlock[]Blocks rendered at the bottom of every page (page tokens interpolated).src/document-json.ts:159
header?readonlyreadonly JsonBlock[]Blocks rendered at the top of every page (page tokens interpolated).src/document-json.ts:157
info?readonlyDocumentInfoInformation dictionary values.src/document-json.ts:125
language?readonlystringBCP 47 language tag for the document.src/document-json.ts:129
page?readonlyTemplatePageOptionsPage geometry and margins.src/document-json.ts:147
pageNumber?readonlyTemplatePageNumberOptionsAutomatic page numbering.src/document-json.ts:151
strictLayout?readonly| boolean | TemplateStrictLayoutOptionsStrict layout checks for fixed templates.src/document-json.ts:155
styles?readonlyTemplateStylesheetReusable named styles.src/document-json.ts:149
tagged?readonlybooleanEmit a tagged (accessible) structure tree.src/document-json.ts:131
title?readonlystringDocument title (information dictionary, XMP, and display-title preference).src/document-json.ts:123
xmpMetadata?readonlyXmpMetadataInputXMP metadata packet or structured input.src/document-json.ts:127

Released under the ISC license.