Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6335537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:52:39+00:00 2026-05-24T18:52:39+00:00

I am currently following this tutorial in Codeigniter and was wondering how I can

  • 0

I am currently following this tutorial in Codeigniter and was wondering how I can add
an image to a pdf, the manual on ezpdf’s page doesn’t specifically state on what kind of path I need to input, I tried everything and the PDF just would not load or show an image.

For your reference I am using the code below to add an image.

$image = base_url()."system/application/images/logo.jpg";
$this->cezpdf->ezImage( $image );
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:52:40+00:00Added an answer on May 24, 2026 at 6:52 pm

    I ended up using fpdf with codeigniter and here’s how I added the image

    function setReportGeneralPageHead($report_name, $print_date){
          $this->fpdf->Image(base_url().'system/application/images/somelogo.jpg',10,3,60,0,'');
          $this->fpdf->Image(base_url().'system/application/images/another-logo.png',225,10,60,0,'');
    
    
           $this->fpdf->SetFont('Arial','',11);
           $this->fpdf->Cell(140,45,$report_name,'',0,'L');
           $this->fpdf->SetFont('Arial','',11);
           $this->fpdf->Cell(135,45, "Generated on: ".$print_date,'',0,'R');
           //$this->fpdf->Line(20, 20, 190, 20);
           $this->fpdf->Ln(15);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been following the 'Netbeans E-Commerce tutorial', and have am currently on this step:
Following from this tutorial.. http://net.tutsplus.com/articles/news/codeigniter-from-scratch-day-6-login/ I have successfully implemented and created/logged in users.. I
I'm currently trying to make some ajax post between cross-domains by following this tutorial
Currently following the HelloWorld Tutorial on the monotouch website . I add the following
I'm starting to use Role Management in my website, and I'm currently following this
I currently have the following row in my table: course_data: user_id days <-- This
I'm currently using the following jQuery plugin: jQuery OEmbed. This plugin works great in
Currently this expression I ([a-zA-z]\d]{3} returns when the following pattern is true: I AAA
i'm trying to make the following routes .. and currently i'm going about this
I'm currently following the third tutorial listed here: here where I'm trying to compile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.