PdfBasicSchema

6 Jul 20264 minutes to read

Represents the Basic Schema.

// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access the document properties
let documentProperties: PdfDocumentInformation = document.getDocumentInformation(false);
// Gets XMP metadata
let xmpMetadata: PdfXmpMetadata = documentProperties.xmpMetadata;
// Sets creator tool
xmpMetadata.basicSchema.creatorTool = 'MyApp';
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();

Properties

Get advisory string[]

Gets the advisory.

Set advisory void

Sets the advisory.

Parameter Type Description
value string[] The advisory to set.

Get baseUrl string

Gets the base URL.

Set baseUrl void

Sets the base URL.

Parameter Type Description
value string The base URL to set.

Get createDate Date

Gets the creation date.

Set createDate void

Sets the creation date.

Parameter Type Description
value Date The createDate value to set.

Get creatorTool string

Gets the creator tool.

Set creatorTool void

Sets the creator tool.

Parameter Type Description
value string The creatorTool to set.

Get identifier string[]

Gets the identifier.

Set identifier void

Sets the identifier.

Parameter Type Description
value string[] The identifier to set.

Get label string

Gets the label.

Set label void

Sets the label.

Parameter Type Description
value string The label to set.

Get metadataDate Date

Gets the metadata date.

Set metadataDate void

Sets the metadata date.

Parameter Type Description
value Date The metadata date to set.

Get modifyDate Date

Gets the modification date.

Set modifyDate void

Sets the modification date.

Parameter Type Description
value Date The modification date to set.

Get nickname string

Gets the nickname.

Set nickname void

Sets the nickname.

Parameter Type Description
value string The nickname to set.

Get rating number[]

Gets the rating.

Set rating void

Sets the rating.

Parameter Type Description
value number[] The rating to set.

Get schemaType PdfXmpSchemaType

Gets the schema type.

Get thumbnails PdfXmpThumbnail[]

Gets the thumbnails.

Set thumbnails void

Sets the thumbnails.

Parameter Type Description
value PdfXmpThumbnail[] The thumbnails to set.