|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
pt2002 Smarty Regular
Joined: 05 May 2003 Posts: 89 Location: Porto, Portugal
|
Posted: Wed Nov 17, 2004 5:21 pm Post subject: |
|
|
Just another thing
I've tried the first example from fpdf.org manual:
Code: |
<?php
define('FPDF_FONTPATH','font/');
require('/www/lib/fpdf/fpdf.php');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
?>
|
It works fine with firefox but give the same popup in IE (open or download)
If it does matter anything, i'm using windows xp sp2, firewall off.
Greetings |
|
Back to top |
|
pt2002 Smarty Regular
Joined: 05 May 2003 Posts: 89 Location: Porto, Portugal
|
Posted: Thu Nov 18, 2004 11:27 am Post subject: |
|
|
Hi boots.
It still doesn't work. I am trying get some help in pdml foruns.
Thank you very much
Greetings
pt2002 |
|
Back to top |
|
pt2002 Smarty Regular
Joined: 05 May 2003 Posts: 89 Location: Porto, Portugal
|
Posted: Thu Nov 18, 2004 3:55 pm Post subject: |
|
|
Hi
I think it's a 'problem' with php5.
With php 5.0.2 I have an empty pdf. With php 4.3.7 works ok with Ie and Firefox.
Greetings |
|
Back to top |
|
pt2002 Smarty Regular
Joined: 05 May 2003 Posts: 89 Location: Porto, Portugal
|
Posted: Fri Nov 19, 2004 1:09 am Post subject: |
|
|
Hi
The 'bug' is Apache mod_gzip. I'll tryto see mod_gzip configuration in httpd.conf to keep both gzip and IE working.
No problems with Firefox.
Greetings |
|
Back to top |
|
jpmc Smarty n00b
Joined: 05 Jun 2006 Posts: 1 Location: UK
|
Posted: Mon Jun 05, 2006 12:02 pm Post subject: |
|
|
Just a thought, have you commented out the following in pdml.php
Code: |
ob_start("ob_pdml");
|
I have having the same problems - blank PDFs. If the above line is not commented out, the pdf is parsed twice and you end up with a blank PDF. I checked the output buffer and it held the correct data, but then the pdml class parsed the contents of the output buffer and I ended up with nothing.
This was mentioned in the very first post in this thread, but I initially thought it just related to the output filter method.
Works for me!
I know this thread was a long time ago, but I have only just stumbled upon this. |
|
Back to top |
|
idxman01 Smarty Rookie
Joined: 10 Jun 2003 Posts: 14 Location: FL
|
Posted: Fri Oct 12, 2007 3:25 pm Post subject: |
|
|
(bringing this up from the grave)
One thing I've had to do is add ob_end_clean() before any header calls in order for this to work properly.
Code: |
ob_end_clean();
Header('Content-Type: application/pdf');
Header('Content-Length: '.strlen($s));
Header('Content-Disposition: inline; filename='.$filename);
|
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|