SetBasePath – Specifies a base URL for mPDF to interpret relative URLs
void SetBasePath ( string $url )
Specifies that mPDF should interpret any URLs in the HTML code relative to this $url. Otherwise relative paths will be based on the current script. This is important for hyperlinks, external stylesheets, and images.
**Note:** From mPDF 5.7 <base href=""> is parsed in the HTML and used to set the base path.
**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.
A full URL should be provided, but the following will all work: