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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syam
    New Member
    • Dec 2006
    • 28

    #1

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

    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.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    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:

    Comment

    • syam
      New Member
      • Dec 2006
      • 28

      #3
      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..

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        You have to use $pdf->Image to put an image in the document.
        Code:
        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:

        Comment

        Working...