Extension talk:Pdf Export/Source Code

Syntax?
It looks like 3 of the code blocks below are missing the closing PHP angle bracket "?>"

Is true? I cannot seem to get this extension working via copy-paste.

--216.226.127.130 14:09, 14 January 2009 (UTC)
 * You dont need an end bracket in these files. In fact its more secure not to use them because this way you dont print out any content accedently after the php script! The end of file acts like "?>". regards --Benjamin Garn 16:13, 14 January 2009 (UTC)

I also had this problem, so I ... removed the ?> and now it works! Bye and thanks for this extension. Enzo

Always get a 0 byte file (SOLVED)
It seams that I have installed s.th. wrong. If copy&paste the content and it didn't works. Then I've removed the "?>" at the end of all 4 files, but it still seams the same issue. Has someone an idea? Thx Torsten

Hi, dont forget to install htmldoc package. Like on yum based distros: yum install htmldoc

I can't export images
Hi, I can configured this extension, but when I export to PDF a page with images, those isn't display in PDF document.

Empty name for Special Page -> PDF Export -> file name
While the Special page for PdfExport kindly suggests file name 'print.pdf' for a multiple-page PDF export, the file that my browser (either Firefox or IE) offers to save is named '.pdf'. Is this a browser particularity, a MediaWiki settings issue or a bug? -- Saruman! 13:39, 2 September 2009 (UTC)

PdfExport_body throws warnings
There are two sections of code that throw warnings:

Line 83: if ($f == null) {

There is no value for $f defined. This doesn't seem to affect the code's operation though.

Line 114: $returnStatus = proc_close($process);

There is no $process variable. Should it be $htmldoc_process?


 * These actually cause failures for us so I corrected the code to:

foreach ($pages as $pg) {           $f = $this->save1page ($pg); if ($f == null) {   continue; } $pagestring .= $f; }
 * and

$htmldoc_process = proc_open("htmldoc... ...       $returnStatus = proc_close($htmldoc_process);