PHP MYSQL FPDF retrieving pdf string stored as blob.

Posted by jj.amonit on Stack Overflow See other posts from Stack Overflow or by jj.amonit
Published on 2010-03-08T20:34:44Z Indexed on 2010/03/08 20:36 UTC
Read the original article Hit count: 745

Filed under:
|
|

Using the above technologies, I want to create a PDF, store it in my db, and email it. All with the click of one button.

I also want to call it up and have it be able to display with a hyperlink.

I am very new to FPDF. Therefore, I am trying to start off very slowly.

I began with this link stackoverflow Q

I put both parts of his code into the same page and tried with separate pages. I made the suggested changes/additions and even did a line by line comparison.

I still get the message, "format error: not a PDF or corrupted"

If I just $pdf->Output(); I get the pdf to display. It's either the way the string is being Output, or it's the header() function. It's not the storage method, unless my column setup is incorrect. BUt a blob is a blob, right?

If you want, I can upload the sanitized code. Just let me know what would help answer this.

Thanks

JJ

© Stack Overflow or respective owner

Related posts about php

Related posts about fpdf