-1

I am creating an application and used fpdi for the printable documents. But when I ran the code, it returned an error: enter image description heresetasign\Fpdi\PdfParser\PdfParserException . What are the possible causes of this error?

anon97
  • 15
  • 5

2 Answers2

0

As you can see from the code, parser tries to find PDF keyword in the file header. But does not find.

PDF file is corrupted or empty.

Anton Rybalko
  • 1,229
  • 17
  • 23
0
header("Content-type:application/pdf");

Add this line to your code.

Bira
  • 4,531
  • 2
  • 27
  • 42