Replies Back to Article

Create PDF with PHP

Fixed
November 25, 2007 by student 101

Something wrong with code, to be expected for free stuff.

Changed this line:
header("Content-Disposition: inline; filename="report.pdf"");

From this:
header("Content-Disposition: inline; filename="report.pdf"");

Now it works!


RE: Fixed
November 26, 2007 by Georgi Kralev

Hi Jayson

You are right. The is a syntax error in the following line:
header("Content-Disposition: inline; filename="report.pdf"");

It should be: 

header("Content-Disposition: inline; filename=report.pdf");

I have correct the problem. Thank you for your contribution.

Best regards,
 

No Probs,
November 26, 2007 by student 101

Bonus!

No Probs,
My mistake of copying and pasting the same freakin' code.

Cool
Cheers

RE: RE: Fixed
November 26, 2007 by student 101

By the way, this example opens up so many new possibilities for my coding.

Now I can add Link to PDF along with the Printer friendly & Email this article.

Thank you!

RE: RE: RE: Fixed
November 26, 2007 by Georgi Kralev

If you find this FAQ useful you can rate it.
This helps us very much to determine what kind of Articles and FAQs the visitors of DMXzone.com want to read and appreciate.

RE: RE: RE: RE: Fixed
November 26, 2007 by student 101

I have,

ASP and or PHP to PDF is what coders are always looking for.
It's impossible to try and re-invent the wheel.

Cheers

 

If there is more records not enough for 1 page ??
February 21, 2012 by Udara Madushan

Please , lets think, If there is more category name (around 1000 records), Then according to current coding, Only One page printing. other not visible or not go to next page...

What is the additional coding that need to add above script if there is more records (eg: 1000) ?

 pelase