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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:08:30+00:00 2026-05-23T22:08:30+00:00

i am using mpdf library, it works perfect individuall in an folder on server,

  • 0

i am using mpdf library, it works perfect individuall in an folder on server, but if i include mpdf library in my application, then it output a blank page. if i see the HTML via firebug then display

<html>
       <head></head>
       <body></body>
</html>

below is my page code

session_start();
error_reporting(-1);    
//include files and mpdf library

$id=(int)$_GET['id'];
//some mysql query and and

$html = "<div id=\"print_target_box\" style=\"display:block;\">";
// some php mysql manipulations
$html .="<b>..</b>
<strong>...</strong><br/>";
// many div and block concatenate by  $html.="";

$html .="</div>";  
$mpdf = new mPDF(); 
$mpdf->debug = true;
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;

echo phpinfo();

returns under zlib section

Directive   Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level   -1  -1
zlib.output_handler no value    no value

and so on…

i also read this link

http://mpdf.bpm1.com/forum/comments.php?DiscussionID=121

  • 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-23T22:08:30+00:00Added an answer on May 23, 2026 at 10:08 pm

    one image `go.gif was missing on server and this does not displaying error
    bcoz error_reporting was set to 0 in below included php page..

    If you edit file mpdf.php and find the line with that error message in it:

    if (!$im) { return $this->_imageError($file, $firsttime, 
        'Error parsing image file - image type not recognised,
          and not supported by GD imagecreate'); }
    

    change this to:

    if (!$im) { echo $data; exit; }
    

    it may show what is going wrong.

    reference:
    http://mpdf.bpm1.com/forum/comments.php?DiscussionID=235

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

Sidebar

Related Questions

I'm using the mPDF library to generate PDF docs directly from HTML output. The
I'm using Symfony and mPDF. I'm trying to integrate both but am running into
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
I am using mPDF ( http://mpdf.bpm1.com ) to create pdf receipts, but at the
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly
Using NSDateComponents I know how to get the day component, but this gives me
Using Xcode4.2.1, with a basic PhoneGap template based app. (I say template, but I
Using Google Maps InfoBox - http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/docs/reference.html Currently the map will scroll - pan control
Using SQL Server 2005 Leave Table ID StartDate EndDate 001 02/03/2010 02/03/2010 002 02/03/2010
using SQL Server 2005 standard edition with SP2 I need to design a table

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.