• info@bizmate.biz

OCR Scan on Linux Ubuntu using Fujitsu ScanSnap S1300i and NAPS2

OCR Scan on Linux Ubuntu using Fujitsu ScanSnap S1300i and NAPS2

How to Fix a Fujitsu ScanSnap S1300i and Set Up Single-Click OCR on Ubuntu Linux

Getting a premium document scanner like the Fujitsu ScanSnap S1300i to play nicely with Linux can be a daunting task. Out of the box, Ubuntu recognizes the USB hardware, but scanning utilities will fail to detect it. This is because the scanner requires a proprietary firmware file (.nal) initialized upon startup to bridge communication.
Furthermore, default Linux scanning utilities like Simple Scan often lack robust, automatic Optical Character Recognition (OCR) features.
This comprehensive guide will walk you through installing the missing ScanSnap drivers, deploying NAPS2 (Not Another PDF Scanner 2) via a standalone .deb package, and configuring it to output fully text-searchable PDFs in one go.

Part 1: Install the ScanSnap S1300i Firmware Driver

Because the device driver firmware is copyrighted property of Fujitsu, Linux distributions cannot distribute it natively. We must download it from a community-maintained repository and map it into the SANE (Scanner Access Now Easy) backend.

1. Download and Place the Firmware

Open your Ubuntu terminal and run the following commands to create the target directory and fetch the correct 1300i_0D12.nal file from the updated repository source:
sudo mkdir -p /usr/share/sane/epjitsu
sudo wget -O /usr/share/sane/epjitsu/1300i_0D12.nal https://github.com/stevleibelt/scansnap-firmware/raw/refs/heads/master/1300i_0D12.nal

2. Configure the SANE Backend

Next, configure the epjitsu driver to reference the newly downloaded file. Open the configuration script in the terminal text editor:
sudo nano /etc/sane.d/epjitsu.conf

Scroll down to the Fujitsu section (or append this to the bottom of the file if it doesn’t exist) to map your hardware parameters:
# Fujitsu ScanSnap S1300i
firmware /usr/share/sane/epjitsu/1300i_0D12.nal
usb 0x04c5 0x128d

Press Ctrl+O, then Enter to save, and Ctrl+X to exit.

3. Grant USB Permissions (udev Rules)

To prevent your scanner from requiring root or sudo access every time you try to launch it, you need to grant the local user group permission to interact with the device.
Create a hardware rule entry:
sudo nano /etc/udev/rules.d/79-scanner.rules

Paste the following configurations into the empty file:
# Fujitsu ScanSnap S1300i
ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="128d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

Save and exit (Ctrl+O, Enter, Ctrl+X).

4. Reload System Hardware Rules

Make sure your user account belongs to the scanner user group, and reload the background rules:
sudo usermod -a -G scanner $USER
sudo udevadm control --reload-rules && sudo udevadm trigger

Crucial Step: Unplug your ScanSnap’s USB connection cable, wait five seconds, and plug it back in. Test if Ubuntu sees the scanner now by executing:
scanimage -L

If configured properly, the scanner’s flashing blue light will stabilize and the terminal will print a line confirming a successful connection to the epjitsu device.

Part 2: Install NAPS2 via Standalone Linux Package

Sandboxed Flatpak versions of NAPS2 often fail to see custom SANE paths on Linux. Installing the native .deb package ensures it communicates smoothly with the hardware rules you configured in Part 1.
Execute these commands to download and deploy the native package file directly from the official NAPS2 project server:
# 1. Download the native package (at https://www.naps2.com/download )
wget https://github.com/cyanfish/naps2/releases/download/v8.3.2/naps2-8.3.2-linux-x64.deb 

# 2. Deploy it locally along with system environment dependencies
sudo apt install ./naps2-8.3.2-linux-x64.deb

# 3. Safely delete the installation setup file
rm naps2-8.3.2-linux-x64.deb


Part 3: Configure Single-Click OCR

On Linux, NAPS2 can run into a common internal bug where it encounters background permission restrictions when downloading or calling its built-in text-recognition engines. You can resolve this issue entirely by providing NAPS2 a global fallback system engine.

1. Fix the Linux OCR Priority Bug

Run this command to build the system framework fallback layer over Ubuntu’s package repository:
sudo apt install tesseract-ocr tesseract-ocr-eng

2. Configure NAPS2 OCR Behavior

Launch NAPS2 from your Ubuntu Application Dock. To establish automatic text extraction:
  1. Click on Profiles -> Add to create a connection profile. Link your detected Fujitsu device here, set your resolution preference (300 DPI is optimal for clear OCR processing), and save the profile.
  2. Click the OCR button on the main layout toolbar.
  3. Check the box to Make PDFs searchable using OCR.
  4. Set your target text language from the dropdown menu (e.g., English).
  5. Ensure that the option Automatically run OCR after scanning” or Pre-emptively run OCR after scanning“. NAPS2 will seamlessly handle the text rendering automatically during the final step. Click **OK**.

3. Scan and Save

Place a document into the ScanSnap sheet feeder slot and click Scan.
Note: You will not see selectable text inside the square preview thumbnails layout. NAPS2 queues this background process for performance efficiency.
Click Save PDF on the toolbar. You will see a processing bar flash briefly across your screen—this indicates that NAPS2 is actively nesting your digital text layer. Open the resulting output file inside a web browser or default PDF viewer, and you can now search, copy, and paste text directly out of the document image!

Disclaimer: This guide is provided for educational and troubleshooting purposes with no warranty or guarantee of any kind. The firmware files mentioned are hosted by third-party community repositories and are not officially affiliated with or endorsed by Fujitsu. Always make sure to back up your system configuration files before executing commands with root (`sudo`) privileges.

Bizmate