Wiki Table of Contents

Gscan2pdf

Introduction

Gscan2pdf is an excellent scanning application that offers output as PDFs or DjVus. It is installed by default in MX Linux.

 

Tips

1. How to start gscan2pdf using your default scanner

There is a normally a long delay while the application searches for available scanners, and if you have only one that you always use this tip will save you time.

Turn on scanner, then open a terminal and enter:

gscan2pdf --log=gscan.txt

Hit the scan button and select your scanner. Close scan window and close gscan2pdf. In a terminal, enter

cat gscan.txt | grep ‘name’

Look for your device name (see examples below). Open MX Menu Editor and click on gscan2pdf in the left pane. In the Command box on the right enter:

gscan2pdf --device=your_device_name

Try inserting the name you found without quotes, or try single quotes if it still doesn’t work. You can delete the /home/user/gscan.txt file

Some examples with the device name in bold

'name' => 'epson2:libusb:002:005'

'name' => 'hpaio:/usb/Officejet_Pro_L7500?serial=MY75M58007'

'name' => 'brother4:net1;dev0' [In this example, single quotes were needed]

Now when you start up gscan2pdf, there will be no long and annoying delay while it finds the device.

2. What to do if your scanner is not being picked up

Sometimes gscan2pdf may not pick up your scanner, even though it is being recognized and perhaps even successfully used with a command-line utility. In such cases, it is often useful to change the frontend that is being used: click Edit > Preferences, and select scanimage (which is what gscan2pdf uses to interact with SANE) in the “Frontend” pull-down box.

Leave a Comment

Do NOT follow this link or you will be banned from the site!