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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:29:17+00:00 2026-06-17T06:29:17+00:00

I am trying to create a pdf with dompdf but I get this error

  • 0

I am trying to create a pdf with dompdf but I get this error when it is trying to add an image.

Uncaught exception 'DOMPDF_Exception' with message 'Function imagecreatefromgif() not found.  Cannot convert gif image: E:\APBPEVALUACIONDES/imagenes/header.gif.  Please install the image PHP extension.' in E:\APBPEVALUACIONDES\dompdf6\include\cpdf_adapter.cls.php:470

Any one could suggest me the extension for this error.

Thanks.

  • 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-06-17T06:29:18+00:00Added an answer on June 17, 2026 at 6:29 am

    imagecreatefromgif() is part of the GD PHP extension. In dompdf 0.5.1 or earlier you could get away without GD if you stuck to PNG, but in 0.6.0 GD is pretty much a requirement. Unless your document does not include images, which it obviously does.

    Check your PHP configuration. So long as you’re using 0.6.0 you can look for any other red flags in the configuration page located at dompdf/www/setup.php (accessed via your web server).

    And just FYI, here’s a quick rundown of the requirements for full functionality:

    • PHP5+ (required)
    • DOM extension (required, enabled by default)
    • GD extension
    • MBString extension
    • allow_url_fopen set to true if you need to access "remote" files (that would be file references using a URL with domain, e.g. http://example.com/image.png). This is sometimes disabled by hosting providers.
    • read/write access to the directories specified by DOMPDF_TEMP_DIR, DOMPDF_FONT_DIR, and DOMPDF_FONT_CACHE by the process running dompdf (typically your web server).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a pdf viewer but I can't separate view from
I am trying to create Landscape PDF using iTextSharp but It is still showing
I am trying to create a pdf report using dompdf. The report needs to
I am trying to create a PDF from a JS highchart chart, like this
I'm trying to create Pdf from java using iText. How Can I Add two
I'm trying to create a header with an image; the header is added, but
I have been trying to create a PDF containing a SVG image with the
I have been trying to create an image from PDF using c#, I have
I'm trying to create a function that would return a PDF document. Something like
I'm trying to create a PDF file with a table of data.. But when

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.