Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

New outputfilter : pdml2pdf
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
pt2002
Smarty Regular


Joined: 05 May 2003
Posts: 89
Location: Porto, Portugal

PostPosted: Wed Nov 17, 2004 5:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
pt2002
Smarty Regular


Joined: 05 May 2003
Posts: 89
Location: Porto, Portugal

PostPosted: Thu Nov 18, 2004 11:27 am    Post subject: Reply with quote

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
View user's profile Send private message
pt2002
Smarty Regular


Joined: 05 May 2003
Posts: 89
Location: Porto, Portugal

PostPosted: Thu Nov 18, 2004 3:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
pt2002
Smarty Regular


Joined: 05 May 2003
Posts: 89
Location: Porto, Portugal

PostPosted: Fri Nov 19, 2004 1:09 am    Post subject: Reply with quote

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
View user's profile Send private message
jpmc
Smarty n00b


Joined: 05 Jun 2006
Posts: 1
Location: UK

PostPosted: Mon Jun 05, 2006 12:02 pm    Post subject: Reply with quote

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! Very Happy

I know this thread was a long time ago, but I have only just stumbled upon this.
Back to top
View user's profile Send private message
idxman01
Smarty Rookie


Joined: 10 Jun 2003
Posts: 14
Location: FL

PostPosted: Fri Oct 12, 2007 3:25 pm    Post subject: Reply with quote

(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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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
Protected by Anti-Spam ACP