By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,125 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

Problem with image in $pdf->Cell() function of FPDF

P: 28
how do i add jpg images into a Cell in pdf . The cells are created by $pdf->Cell function.I never getting the images inside the cell . I am using $pdf->Image() function to display the image.
Jan 20 '07 #1
Share this Question
Share on Google+
3 Replies


ronverdonk
Expert 2.5K+
P: 4,258
Since I have no idea what class you are talking about, you ought to give some more information on the background. What class or package are you using?

Ronald :cool:
Jan 20 '07 #2

P: 28
I am using FPDF calss for the creation of the pdf file .
In my pdf page i am using $pdf = new FPDF();
and $pdf->Cell(); And i am getting the cells weel. But i can't add jpeg/jpg images to those cells. Pls..help me..
Jan 22 '07 #3

ronverdonk
Expert 2.5K+
P: 4,258
You have to use $pdf->Image to put an image in the document.
Expand|Select|Wrap|Line Numbers
  1. Image(string file, float x, float y [, float w [, float h [, string type [, mixed link]]]]) 
See the FPDF documentation at http://www.fpdf.org/?lang=en

Ronald :cool:
Jan 22 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.