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 7582735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:30:31+00:00 2026-05-30T18:30:31+00:00

I started to use DOMPDF in my CodeIgniter project to render some information in

  • 0

I started to use DOMPDF in my CodeIgniter project to render some information in PDF.

Everything is OK when I display the information in html. But… no images were displayed in PDF, for the same HTML code (info: images used for background).

Except images, the other CSS info were correctly displayed (color, text-indent,…).

I tried the same ‘kind’ of code without using CodeIgniter, and the images were generated correctly.

Conclusion: Problem using DOMPDF in CodeIgniter.

Some ideas? I tried many ‘random’ combinations, but it still doesn’t work. No google results for keywords ‘CodeIgniter, DOMPDF, CSS, Images’…

Thanks in advance.

  • 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-30T18:30:33+00:00Added an answer on May 30, 2026 at 6:30 pm

    After more testing, I was able to add images:

    • By writing the CSS inside the HTML code, using tag.
    • Use paths relative to the root directory, not the HTML file, like: ./assets/img/my_image.png

    This worked for me, but I don’t know why.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I lately started to use htaccess to rewrite my URL's but i've got some
I just started to use WCF Rest project template to design a REST service,
I started to use Dashcode with a Safari Custom Project, my apps work fine,
I've just started to use PHPUnit, but I've run into a bit of a
I started to use HTML5 cache to view a simple HTML page with one
I have started to use jenkins to build my project. I build my project
I have started to use git for my projects, when I create a project
I started to use the csv.reader in Python 2.6 but you can't use len
I started to use m2eclipse. After install, i download some archetype, maven install, package,
I started to use Jackrabbit in my project. As i found out there is

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.