Topic on Project:Support desk

Installing Extension:PdfHandler

7
Carchaias (talkcontribs)

I tried to install the pdfhandler:extension to work today but it won't work. this is an win2003 server (64) machine. I installed gs and xpdf. ImageMagick worked already before. I configued as follows:

require_once "$IP/extensions/PdfHandler/PdfHandler.php";
$wgPdfProcessor = 'C:\Program Files\gs\gs9.07\bin\gswin64.exe';
$wgPdfPostProcessor = $wgImageMagickConvertCommand;
$wgPdfInfo = 'C:\Program Files\xpdf\bin64\pdfinfo.exe';
$wgPdftoText = 'C:\Program Files\xpdf\bin64\pdftotext.exe';

All paths have been checked several times. Instead of a nice rendered pdf-pic i get only a malformed File: - page for each pdf file. Example:

Where is the gap?

Krinkle (talkcontribs)

This is likely due to a modification made to the interface message file-info-size. Check MediaWiki:File-info-size/de or MediaWiki:File-info-size on your wiki (not on MediaWiki.org). Did you edit this one? If so, edit it again and make sure there it has no extra space in front.

Extra space at the beginning of a message renders as a "<pre>".

 Example.
Carchaias (talkcontribs)

These messages dont have been modified. Thus I checked for spaces but there are none. When I comment out the pdfhandler in localsettings.php the above mentioned behavior disappears and all looks fine. So I think it comes from the extension..

78.208.80.21 (talkcontribs)

I've the same problem... with a debian install and pdf handler

Carchaias (talkcontribs)

Some time has passed and tody I tried agan with pdf-handler on a fresh 1.23.2 Installed wiki. That malforming has gone - fine.

Well, but was does this extension do? I can't see any reaction to my wiki!

Configuration ist this:

require_once "$IP/extensions/PdfHandler/PdfHandler.php";
# Konfiguration von pdfhandler
$wgPdfProcessor = 'C:\Program Files\gs\gs9.70\bin\gswin64.exe';
$wgPdfPostProcessor = $wgImageMagickConvertCommand; // if defined via ImageMagick
//$wgPdfPostProcessor = 'C:\Program Files (x86)\ImageMagick-6.6.9-Q16\convert.exe'; // if not defined via ImageMagick
$wgPdfInfo   = 'C:\Program Files\xpdf\bin64\pdfinfo.exe';
$wgPdftoText = 'C:\Program Files\xpdf\bin64\pdftotext.exe';

Any ideas are welcome...

Carchaias (talkcontribs)

Some time has passed and tody I tried agan with pdf-handler on a fresh 1.23.2 Installed wiki. That malforming has gone - fine.

Well, but was does this extension do? I can't see any reaction to my wiki!

Configuration ist this:

require_once "$IP/extensions/PdfHandler/PdfHandler.php";
# Konfiguration von pdfhandler
$wgPdfProcessor = 'C:\Program Files\gs\gs9.70\bin\gswin64.exe';
$wgPdfPostProcessor = $wgImageMagickConvertCommand; // if defined via ImageMagick
//$wgPdfPostProcessor = 'C:\Program Files (x86)\ImageMagick-6.6.9-Q16\convert.exe'; // if not defined via ImageMagick
$wgPdfInfo   = 'C:\Program Files\xpdf\bin64\pdfinfo.exe';
$wgPdftoText = 'C:\Program Files\xpdf\bin64\pdftotext.exe';

Any ideas are welcome...

92.79.145.134 (talkcontribs)

I'm pretty sure that something is going wrong with the "SPACE" within the pathes. Runing /maintenance/runjobs.php on that server produces errors like

Der Befehl "C:\Program" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

Any Ideas.

Reply to "Installing Extension:PdfHandler"