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? Quote Link to comment 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 Quote Link to comment 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! Quote Link to comment 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. Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.