Loading...
 
Skip to main content

PDF Generation does NOT work!

Status
Closed
Subject
PDF Generation does NOT work!
Version
1.9.x
Category
  • Error
  • Usability
  • Support request
Feature
PDF
Resolution status
Won't Fix
Submitted by
psue
Volunteered to solve
psue
Lastmod by
Beestje
Rating
(0)
Description

Platform:
tikiwiki Version 1.9.4
RHFC 4 (2.6.17-1.2139_FC4smp #1 SMP)
PHP 5.0.4 (with php-xml-5.0.4-10.5)

UPDATE:

OK, it looks like the problem was due to strange characters (I had copied-and-pasted from another tikiwiki site).

So, if I create a new wiki page and try to create a PDF from that, I get further. This time, I get a pge full of the PDF codes! I've tried using both IE6 and Firefox 1.5.0.6.
I noticed another poster complaining about problems with Opera 9.

I don't think it's a browser issue.

======
Problem:
PDF Generation doesn't work. After clicking the "Create" button, the resulting page (tiki-export_pdf.php) is blank.

I added some debug statements to the code, and it appears that everything is fine up to this statement in function insert_html (source file: pdflib.php):

$this->flush($src);

In the line before:

$this->WalkParsedArray($htmlparser->content,$src,$dummy);

if I print out $src, I can see the contents fine. But the flush statement following doesn't seem to work. In fact, if you append an echo statement after that, it doesn't execute:

$this->flush($src);
echo "after flush\n"; <=== doesn't display

In the code for flush(), I added more echo statemnts.

function flush($src) {

echo "<h2>entering flush</h2>";

$this->ezText($src,$this->tiki_textheight);

echo "<h2>leaving flush</h2>";

}

I also added echo statements in ezText().

Interestingly, "entering flush" is printed followed by REPEATED calls to ezText. The "leaving flush" statement is NOT printed!!

This is very weird.

I know the PDF generation feature worked fine in version 1.7.1.

Any ideas what's going on? I can send the entire debug output if it will help.

Thanks,

paul

Solution

Closing bug as PDF generation is cancelled as of 2.x and only security fixes will be released for the 1.9 branch.

Check the PDF docsQuestion for more info.

Importance
6
Priority
30
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
866
Created
Saturday 26 August, 2006 05:01:54 UTC
by Unknown
LastModif
Thursday 23 April, 2009 14:02:38 UTC


Show PHP error messages