Document Metadata

PDF documents can have various metadata associated with them, such as the title, or author of the document. You can add that information by adding it to the document definition

var docDefinition = {
  info: {
	title: 'awesome Document',
	author: 'john doe',
	subject: 'subject of document',
	keywords: 'keywords for document',
  },
  content:  'This is an sample PDF printed with pdfMake'
}

Standard properties:

Custom properties:

You can add custom properties. Key of property not contain spaces.

Document language

PDF document can have custom language set via language property.

Example:

var docDefinition = {
  language: 'cs-CZ'
  content: 'Jednoduchý PDF dokument vytvoření pomocí pdfmake'
}