PdfPagedTextSchema

6 Jul 20262 minutes to read

Represents metadata for paginated text structure in a PDF document.

// 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 xmp: PdfXmpMetadata = documentProperties.xmpMetadata;
// Sets page count
xmp.pagedTextSchema.pageCount = 5;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();

Properties

Get colorants string[]

Gets the colorants (rdf:Seq).

Set colorants void

Sets the colorants (rdf:Seq).

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

Get fonts string[]

Gets the fonts collection (rdf:Bag).

Set fonts void

Sets the fonts collection (rdf:Bag).

Parameter Type Description
value string[] The fonts collection to set.

Get maxPageSize PdfXmpDimensionsStruct

Gets the maximum page dimensions structure.

Set maxPageSize void

Sets the maximum page dimensions structure.

Parameter Type Description
value PdfXmpDimensionsStruct The maximum page dimensions to set.

Get pageCount number

Gets the page count.

Set pageCount void

Sets the page count.

Parameter Type Description
value number The number of pages to set.

Get plateNames string[]

Gets the plate names (rdf:Seq).

Set plateNames void

Sets the plate names (rdf:Seq).

Parameter Type Description
value string[] The plate names to set.

Get schemaType PdfXmpSchemaType

Gets the schema type.