FPDF display blank page

Posted on 2006-05-04
Last Modified: 2012-05-05

     I tried to display simple script like below

$pdf=new FPDF();
$pdf->Cell(40,10,'Hello World!');
But as result, it display blank page. I read FAQ from FPDF sites but seems not work at all. Please help.

Question by:MNCW2
    LVL 49

    Expert Comment

    Try removing the @ before the require and add:



    Author Comment

    Still doesn't work :(
    LVL 49

    Accepted Solution

    Sometimes when testing you need to add some random parameter, like: testfpdf.php?random=1 to prevent your page from being cached by your browser.
    Although this sounds silly (it is), it is just a guess as you aren't receiving any error messages.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to dynamically set the form action using jQuery.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now