0

I'm using TCPDF and FPDI to embed an existing pdf file into my new pdf generated with database data. The problem is when I charge the page, it throws this error:

Severity: Warning

Message: fseek(): stream does not support seeking

Filename: fpdi/pdf_parser.php

Type: Exception

Message: Unable to find xref table.

Help please!!

Community
  • 1
  • 1

1 Answers1

0

As the error message sais FPDI requires the opened stream to be seekable.

If the PDF is not available you may pass it to an appropriate stream wrapper. Here you find a stream wrapper for variables, which may help you.

Jan Slabon
  • 4,736
  • 2
  • 14
  • 29