anchor2Bookmark
anchor2Bookmark – Specifies whether PDF Bookmarks are created automatically from HTML anchors
Note: This variable originally started with an uppercase letter (≤ mPDF 2.2).
Support for the uppercase version was removed in mPDF ≥ 6.0
Description
void anchor2Bookmark = 0
|1
Specifies whether PDF Book marks are created from HTML anchors (e.g. <a name="Introduction" />
) .
Values
Set the variable with one of the values.
0
- does not generate a bookmark1
- generate a bookmark using the text value of thename="Text"
attribute
Default: 0
Usage
Set at document initiation
<?php
$mpdf = new \Mpdf\Mpdf(['anchor2Bookmark' => 1]);
See Also
- SetAnchor2Bookmark() - Specifies how PDF Book marks are created from HTML anchors