Metadata and navigation

edit

Besides its pages, a document carries what describes it and what helps readers move in it. The members of PdfDocument read and write them, for a document you create as for a document you open:

ToUsePage
Give a title, an author, keywords, dates, a languageInformation, Language, the XMP metadataMetadata
Add bookmarksOutlinesOutline and links
Link to a page or a websitePdfPage.Annotations.AddLinkOutline and links
Attach files to the document or to a pageEmbeddedFiles, PdfPage.Annotations.AddFileAttachmentEmbedded files
Number the pages i, ii, iii, then 1, 2, 3PageLabelsPage labels
Add notes, highlights, free texts and stampsPdfPage.Annotations.AddNote, AddTextMarkup, AddFreeText, AddStampAnnotations

The changes are written when the document is saved, by a full or an incremental save: see Modifying documents.

In this section

  • Metadata: the document information, the XMP metadata and the language.
  • Outline and links: bookmarks, destinations and link annotations.
  • Embedded files: attach files to a document or to a page, and read them back.
  • Page labels: the labels viewers show instead of the page numbers.
  • Annotations: notes, text markups, free texts, stamps, and the flags of the annotations.