SetAnchor2Bookmark – Specifies whether PDF Bookmarks are created automatically from HTML anchors
void SetAnchor2Bookmark ( int $mode )
Specifies whetherPDF Book marks are created from HTML anchors (e.g. <a name=”Introduction” />) . This function simply sets the variable $anchor2Bookmark
**Note:** This function/method was altered in mPDF 2.2 by capitalising the first letter of the name. As function/method names in PHP have hitherto been case-insensitive, this should not cause any problems, but it is recommended where possible to use the preferred spelling.
0 - does not generate a bookmark
1 - generate a bookmark using the text value of the $name attribute
$mode = 2 removed
**Note:** Prior to mPDF 3.0 you could specify $mode = 2 which added the page number to the bookmark e.g. Introduction (p.32). This was removed as it did not accurately handle pagebreaks etc.