• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3558
  • Last Modified:

FPDF display blank page

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
MNCW2
Asked:
MNCW2
  • 2
1 Solution
 
RoonaanCommented:
Try removing the @ before the require and add:

error_reporting(E_ALL);

-r-
0
 
MNCW2Author Commented:
Still doesn't work :(
0
 
RoonaanCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now