You are here

[Fixed] XnView 1.98 Will Not Batch Scan

11 posts / 0 new
Last post
nilnix
Offline
Last seen: 9 years 6 months ago
Joined: 2010-01-02 02:44
[Fixed] XnView 1.98 Will Not Batch Scan

I just downloaded XnView 1.98 to do some batch scanning. I'm trying to scan multiple pages to a single PDF.

I've tried to scan multiple pages as TIFF or PDF, using "acquire into" to create the file. Neither works. I get an error message saying that XnView can't create the .tmp file (or .tif file) in the directory I've chosen. If I retry, XnView crashes.

When this feature wouldn't work, I wondered whether XnView relied on the registry (or something that the portable version doesn't have) to create the file. Has anyone else tried batch scanning and had this problem? If so, do you know how to get batch scanning to work with XnView portable?

Thanks.

nilnix
Offline
Last seen: 9 years 6 months ago
Joined: 2010-01-02 02:44
Solution To XnView Batch Scan Problem

I finally figured this out. You have to download the standard .zip version of XnView from the developer's site. Then you have to install Ghostscript to batch scan to PDF. It doesn't look as if this is something you can run from a USB drive unless the computer you're using has Ghostscript installed. As far as I know, you can't install Ghostscript on a USB drive.

pierrot
Offline
Last seen: 8 years 5 months ago
Joined: 2008-02-26 12:34
Making pdf without Ghostscript

Try http://www.7-pdf.de/
"7-pdf Maker portable" (paf.exe) converts without Ghostscript printer.
Peter

depp.jones
Offline
Last seen: 5 hours 16 min ago
DeveloperTranslator
Joined: 2010-06-05 17:19
That's an interesting point.

I cannot test it atm as I don't have a computer without ghostscript installed. Does saving a picture to pdf format work without it?
There is a Ghostscript Portable Version here as CommonFiles installer. Maybe the dependency can somehow be pointed there if that is installed.

@Peter:
7-PDF Maker sounded nice at first but it turned out to be a thinned out OpenOffice 3.0 with a frontend for file- and parameter-handling. That shurely is a possiblity but it's a huge beast for its task. Wink
Also, as it is a restricted demo (payware) I am not shure if it is compliant with the licenses it uses. The LGPL shurely allows modification and commercial use but I found no hint for the source code of used libraries (OOo and possibly Sumatra). I also don't know if the LGPL allows such a restricting EULA as is used.
Apart from that the idea is good.

nilnix
Offline
Last seen: 9 years 6 months ago
Joined: 2010-01-02 02:44
Will Test Ghostscript Portable

I cannot test it atm as I don't have a computer without ghostscript installed. Does saving a picture to pdf format work without it?

You can scan one page at a time directly to PDF or covert a picture to PDF without Ghostscript. It's only when you use batch scan (multiple pages saved to one PDF file) that you need it.

I have a computer without Ghostscript installed. I'll do some testing with the Ghostscript Portable Version to see if I can get batch scanning to work from the USB drive. Based on the error messages I was getting without Ghostscript, I don't think it will be easy.

depp.jones
Offline
Last seen: 5 hours 16 min ago
DeveloperTranslator
Joined: 2010-06-05 17:19
I found a hint in the XnView

I found a hint in the XnView forums. Try setting the enviroment variables XNVIEW_GS_DLL (path of gsdll32.dll) and XNVIEW_GS_LIB (path of gs lib folder) after installing Ghostscript Portable. Something like

SET XNVIEW_GS_DLL=X:\PortableApps\CommonFiles\Ghostscript\bin

and

SET XNVIEW_GS_LIB=X:\PortableApps\CommonFiles\Ghostscript\lib

(replace drive letter and path according to your installation). It should then use that installation. I may test it when I have access to my scanner again.
I don't know how to set these enviroment variables automatically without a batchfile since XnView Portable uses a custom launcher.
With PAL it would have been easy to simply define them in the launcher.ini.
Maybe you could mark the opening topic as bug as it could possibly be fixed in a future revision

nilnix
Offline
Last seen: 9 years 6 months ago
Joined: 2010-01-02 02:44
Marked this as a bug

I've just marked the opening topic as a bug. I'll have to put off testing until later when I can move my scanner to the other computer (and I have more free time). If you have a chance to test this, please post your results here. Thanks.

jwinter
Offline
Last seen: 4 years 6 months ago
Joined: 2008-06-02 00:40
Couldn't get Xnview to see Ghostscript Portable

I installed the latest Ghostscript Portable and tried to see whether XnView would use it to open PDF files - but it would not.

I then tried creating a file called XnViewPortable.ini with the entries:

[Environment]
SET XNVIEW_GS_DLL=X:\PortableApps\Ghostscript\bin\
SET XNVIEW_GS_LIB=X:\PortableApps\Ghostscript\lib\

..in the hope of setting up XnView's environment variables to find the Ghostscript Portable, but this did not help.

I think we need John Smith of SmithTech to take a look at it to find out how to connect the two packages?

JohnW

mbernardi
Offline
Last seen: 3 years 7 months ago
Joined: 2012-02-26 07:21
Ghostscript Portable issues

I've also tried this with Portable IrfanView. Even with portable GhostScript installed it too generates a "Can't load GhostScript error" when trying to open a PDF file.

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 56 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Latest

Are you using XnView Portable 1.98.6 along with the current Ghostscript Portable installed to their default locations (X:\PortableApps\XnView and X:\PortableApps\CommonFiles\Ghostscript)? It should be automatic now. Though if you manually set it, it may mess up.

Sometimes, the impossible can become possible, if you're awesome!

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 56 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 1.98,7

Gord has added functional Ghostscript Portable support to 1.98.7 and confirmed that batch scanning is functional.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments