mPDF Manual – What Else Can I Do

Bookmarks

Bookmarks

PDF document Bookmarks can be set in two ways:

<bookmark content=”Buffalo” level=”0” />   or

$mpdf->Bookmark(“Buffalo”,0);

Bookmark(string content[, integer level])

  • content Text string (utf-8 encoded)
  • level Specify the level of this entry i.e. like heading1,2,3; but starts at level 0 Default = 0

NB Bookmarks use system fonts, therefore any Unicode text can be used, even if a unibyte codepage is being used for the document.

See - bookmarkStyles