Level 4
Nobody knows?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I want to take JPG image and convert it to PDF. There are two scenarios:
I have this code using FPDF.
$pdf = new FPDF();
$pdf->setPrintHeader(false);
$pdf->AddPage();
$img_link = 'http://www.......';
$pdf->Image($link, 0, 0, 0,0);
$pdf->Output($_SERVER['DOCUMENT_ROOT'] . 'public/upload/test.pdf', "F");
I can find manual and even examples. http://www.fpdf.org/en/doc/image.htm But I have absolutely no idea what are they trying to say by that or how any of these units are suppose to work. I woukld be very grateful for the help with this.
Please or to participate in this conversation.