dennismonsewicz Posted February 1, 2010 Share Posted February 1, 2010 I am working on a PHP script that will take a generated barcode and then place the image inside of a PDF using the FPDF script. require_once('fpdf.php'); require_once('fpdi.php'); $pdf =& new FPDF(); $pdf->Image("images/o-png24.png"); $pdf->Output("pdf.pdf", "F"); The PDF creates but the image does not place inside the PDF... any ideas? Link to comment https://forums.phpfreaks.com/topic/190587-fpdf-image-problem/ Share on other sites More sharing options...
Mchl Posted February 1, 2010 Share Posted February 1, 2010 You need at least AddPage() to the document Link to comment https://forums.phpfreaks.com/topic/190587-fpdf-image-problem/#findComment-1005181 Share on other sites More sharing options...
dennismonsewicz Posted February 1, 2010 Author Share Posted February 1, 2010 Thanks! It works like a charm now! Link to comment https://forums.phpfreaks.com/topic/190587-fpdf-image-problem/#findComment-1005182 Share on other sites More sharing options...
Mchl Posted February 1, 2010 Share Posted February 1, 2010 Before you go deeper into FPDF, consider switching to TCPDF. Unlike FPDF it is actively developed and all things considered better designed. Link to comment https://forums.phpfreaks.com/topic/190587-fpdf-image-problem/#findComment-1005185 Share on other sites More sharing options...
dennismonsewicz Posted February 1, 2010 Author Share Posted February 1, 2010 hmmm I will have to check that out! I appreciate ALL of your help buddy! Link to comment https://forums.phpfreaks.com/topic/190587-fpdf-image-problem/#findComment-1005187 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.