Lister plugin - PDFView 1.05

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
panneer
Junior Member
Junior Member
Posts: 4
Joined: 2004-10-07, 05:38 UTC

Lister plugin - PDFView 1.05

Post by *panneer »

Hi,

I've trying to use pdfview V1.05 lister plugin alongwith hand made ghostscript environment (just copied ghostscript files instead of installing them).

I modified "lsplugin.ini" appropriately (exepath & command) as suggested in readme.txt. But when I try to open a pdf on lister, I get dialog window with following error message,

"Ghostscript could not convert document."

Could anyone suggest me what I'm supposed to do or could anyone give me some hint how I can find more details about the error? Is it possible to see that invocation of ghostscript thru pdfview? Is their any log?

Thanks in advance and Have a nice day

with regards,
Panneer :-)
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved the topic to the Plugin forum.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 1054
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Hi!

I think that Ghostscript needs some registry entries to work properly. E.g. the path to Ghostscripts bin files must be given in the registry.
My registry shows the following entry (exported):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\AFPL Ghostscript]

[HKEY_LOCAL_MACHINE\SOFTWARE\AFPL Ghostscript\8.11]
"GS_DLL"="d:\\tools\\gs\\gs8.11\\bin\\gsdll32.dll"
"GS_LIB"="d:\\tools\\gs\\gs8.11\\lib;d:\\tools\\gs\\fonts;d:\\tools\\gs\\gs8.11\\Resource"

You could try to copy these lines into a reg-file and adapt the pathes to your needs. Please let me know if it worked.
Grüße/Regards,
Wilhelm
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Even under W 98SE---

Post by *Clo »

2panneer
:) Hello !
- I've PDF-View 1.05 installed under Win98 SE.
- GhostScript 8.13 had been installed. Dir. size : 16.5 MB :(
- In the Registry, I've the equivalent key like Wilhem M. shows above :

Code: Select all

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\AFPL Ghostscript\8.13]
"GS_DLL"="C:\\gs\\gs8.13\\bin\\gsdll32.dll"
"GS_LIB"="C:\\gs\\gs8.13\\lib;C:\\gs\\fonts;C:\\gs\\gs8.13\\Resource"
- The plugin works correctly (not a wonder, though…)

:mrgreen: Kind regards,
Claude
Clo
Last edited by Clo on 2004-10-08, 04:53 UTC, edited 1 time in total.
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
panneer
Junior Member
Junior Member
Posts: 4
Joined: 2004-10-07, 05:38 UTC

Thanks but problem persists still

Post by *panneer »

Hi All,

Thanks all for your immediate response. Even after adding the registry entries, I get the same problem. But when I invoke the ghostscript from command line it works fine. I mean made a batch calling ghostscript exe (gswin32c.exe) with arguments (that I've in lsplugin.ini "command" value, by replacing %n with proper values). This call successfully converts the pdf file and produces a bmp file.

Do I miss anything else? Please advice me how I can fix this problem?
Also if possible, please tell me whether pdfview plugin creates any error log?

Thanks again

with regards,
Panneer :-)
User avatar
fnheiden
Senior Member
Senior Member
Posts: 234
Joined: 2003-02-16, 12:06 UTC
Location: Dresden, Germany
Contact:

Post by *fnheiden »

Please post the [pdfview] section of your lsplugin.ini.

Best regards,
~ Florian
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 1054
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Well, I have not installed pdfview. Only, your " hand made ghostscript environment" indicated a missing registry entry. (BTW: why didn't you install Ghostscript properly? GS is very well behaving program, that does not mess up your system.)
Now it seems to me that it is a plugin configuration problem. Could you post your lsplugin.ini entry here? Besides, I cannot find any hint of a %n parameter in the pdfview readme.txt, but maybe I looked not closely enough.
Another advice is to write a mail to author Florian Heidenreich, he probably could help you.
Grüße/Regards,
Wilhelm
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 1054
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Well now, Florain was a bit more quickly...
Grüße/Regards,
Wilhelm
panneer
Junior Member
Junior Member
Posts: 4
Joined: 2004-10-07, 05:38 UTC

Post by *panneer »

Hi,

Here goes my lsplugin.ini entries,
============================================
[pdfview]
exepath=E:\Progra~1\Ghosts~1\gs8.00\bin
command=-IE:\Progra~1\Ghosts~1\gs8.00\lib;D:\Progra~1\Ghosts~1\fonts -dSAFER -dBATCH -dNOPAUSE -sDEVICE=bmp256 -r%3 -sOutputFile=%2 -dFirstPage=%4 -dLastPage=%4 "%1"
resolution=144
============================================

My command line trial batch program goes as below,
============================================
E:\Progra~1\Ghosts~1\gs8.00\bin\gswin32c.exe -IE:\Progra~1\Ghosts~1\gs8.00\lib;E:\Progra~1\Ghosts~1\fonts -dSAFER -dBATCH -dNOPAUSE -sDEVICE=bmp256 -r144 -sOutputFile=out.bmp -dFirstPage=1 -dLastPage=1 "test.pdf"
============================================
And this works fine and I get out.bmp properly.

Thank you

with regards,
Panneer :-)
User avatar
fnheiden
Senior Member
Senior Member
Posts: 234
Joined: 2003-02-16, 12:06 UTC
Location: Dresden, Germany
Contact:

Post by *fnheiden »

Please change exepath to

Code: Select all

exepath=E:\Progra~1\Ghosts~1\gs8.00\bin\gswin32c.exe
Best regards,
~ Florian
panneer
Junior Member
Junior Member
Posts: 4
Joined: 2004-10-07, 05:38 UTC

Post by *panneer »

Hi,

Thanks a lot, it works fine now (after adding the "gswin32c.exe" to "exepath" value).

Thanks to all for your immediate response and support.

Have a nice day

with regards,
Panneer :-)
peterbbrown
Junior Member
Junior Member
Posts: 16
Joined: 2003-06-11, 20:46 UTC

PDFView problem with lsplugin.ini ??

Post by *peterbbrown »

I installed PDF Creator which has its own copy of GS 8.14 and modified my lsplugin.ini file to read this way, following the guidance of the readme with pdfview, but I keep getting the error "Ghostscript could not convert document". I added the section of "-I" and the exepath lines to the file as I found it, closing TC each time and restarting it, but I still get the error. What am I missing here, please? I also am using the latest PDFView plugin (1.07), which installed itself into the 1.02 folder in the Plugins, so the wincmd.ini file remains the same.

[pdfview]
command=-IC:\PROGRA~1\PDFCRE~1\GS8.14\gs8.14\Lib -dSAFER -dBATCH -dNOPAUSE -sDEVICE=bmp256 -r%3 -sOutputFile=%2 -dFirstPage=%4 -dLastPage=%4 "%1"
resolution=144
exepath=C:\PROGRA~1\PDFCRE~1\GS8.14\gs8.14\Lib
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3896
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

At least your exepath entry must include the program (gswin32c.exe) itself.

I don't know where it is located in your case (look at the post of fnheiden and panneer above)
#5767 Personal license
peterbbrown
Junior Member
Junior Member
Posts: 16
Joined: 2003-06-11, 20:46 UTC

Post by *peterbbrown »

I just discovered where I and the writer of the readme file for this plugin erred: the line for exepath must be first. I moved the line to the top, after unsuccessfully adding the name of the file to the line, and only then did it work right. So this is a working file now:
[pdfview]
exepath=C:\PROGRA~1\PDFCRE~1\GS8.14\gs8.14\Lib\gswin32c.exe
command= -IC:\PROGRA~1\PDFCRE~1\GS8.14\gs8.14\Lib -dSAFER -dBATCH -dNOPAUSE -sDEVICE=bmp256 -r%3 -sOutputFile=%2 -dFirstPage=%4 -dLastPage=%4 "%1"
resolution=144

If the author of this plugin reads this, please change your readme file to include this information, and also give an example, as I have above, of exactly what you meant by the note:
"You also have to supply the -I<lib-directory> switch to the command string."
User avatar
fnheiden
Senior Member
Senior Member
Posts: 234
Joined: 2003-02-16, 12:06 UTC
Location: Dresden, Germany
Contact:

Post by *fnheiden »

I don't think that the order of the keys in the ini does matter. The exepath key is on the second position here and everything works fine :)

Although you don't have to worry about the exepath key if you have Ghostscript installed I'll add an example of it to the readme.

Thanks for your feedback!

Regards,
~ Florian
Post Reply