?
Solved

FPDF display blank page

Posted on 2006-05-04
3
Medium Priority
?
3,296 Views
Last Modified: 2012-05-05
Hi,

     I tried to display simple script like below
<?
@require('fpdf.php');

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

0
Comment
Question by:MNCW2
  • 2
3 Comments
 
LVL 49

Expert Comment

by:Roonaan
ID: 16612534
Try removing the @ before the require and add:

error_reporting(E_ALL);

-r-
0
 

Author Comment

by:MNCW2
ID: 16612549
Still doesn't work :(
0
 
LVL 49

Accepted Solution

by:
Roonaan earned 1500 total points
ID: 16612576
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.

-r-
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

809 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