I have an issue when calling output function using v.6.1.4.
Since i've ever tried to use Output('filename.pdf', \Mpdf\Output\Destination::INLINE); function in mPDF v.7.x so i tried this format function in mPDF v.6.1.4 (just changed "\Mpdf.." to "\mPDF..") because i am working with company that's using php 5 even older, and then i get this error:
Fatal error: Class 'mPDF\Output\Destination' not found.
How can i to perform the mPDF output function to show the pdf inline browser in mPDF v.6.1.4 ?
Thanks in Advance Brothers/Sisters.
You cannot use
\Mpdf\Output\Destination::INLINEin mPDF v.6.1.4, for class\Mpdf\Output\Destinationis not defined in mPDF v.6.1.4. But you can useIinstead of\Mpdf\Output\Destination::INLINE.Class 'mPDF\Output\Destinationis defined since mPdf v7.0.To make it more clear, the relevant source code. Here is the source code, and there is no
/Output/Destination.phpin this version. https://raw.githubusercontent.com/mpdf/mpdf/v6.1.4/mpdf.phpHere is the source code of v7.0.0, and
Output/Destination.phpis added. https://raw.githubusercontent.com/mpdf/mpdf/v7.0.0/src/Mpdf.phphttps://github.com/mpdf/mpdf/blob/v7.0.0/src/Output/Destination.php