Here,below is my code for converting an image into pdf using mpdf.
$html contains upload/tulips.jpg
But,when the function executes the pdf file created and an image icon shows there with the location upload/tulips.pdf
.
Kindly tell me why this is happening because no bug is coming.
private function ConvertImageToPdf($inputPath,$outputPath)
{
$mpdf=new mPDF();
$html='<img src='.$inputPath.'/>';
$mpdf->WriteHTML($html);
$mpdf->Output($outputPath.".pdf",'F');
$mpdf->debug = true;
}