Hallo,
I want to use NAPS2 not for scanning using a real scanner - I just want to use it to convert a scanned pdf file which I already have on my computer to a searchable file using the commandline tool.
Yesterday it was possible but today it is no longer working. Can you please tell me how to do it? All I want to achieve is to fetch a pdf file, ocr it and put it somewhere else. Somethink like deskew would be great too :-).
The PDF file I use for testings: http://www.tobias-elze.de/pdfsandwich/alice.pdf (sry was unable to find another one)
The commandline arguments: NAPS2.Console.exe -i "D:\alice.pdf" --enableocr --ocrlang eng --profile PDFOCR -v -o "D:\out.pdf"
output of the command:
importing...
imported file 1 of 1.
beginning scan...
no scanning device found
0 page(s) scanned.
exporting...
successfully saved pdf file to D:\out.pdf
Yesterday: the commandline wrote something about "no scanning device found", then it started the ocr procedure and put the new searchable pdf file to the location defined in "-o".
Today: it is providing the output as described above and just copies the pdf file to the new location without modifying/touching it in any way.
There are two things I changed today:
1: I did an upgrade to the latest beta 6.0b3 (and downloaded the new tessdata files). As I saw it was not working I uninstalled it and reinstalled 5.8.2. As I think the new tessdata files are not compatible or working with the older version I removed the complete "NAPS2" folder from my Roaming directory and reinstalled the dependencies.
2: I tried to make a default profile using C#.Net (NAPS2.Config.ProfileManager) and also to run commands using the EntryPoints "ConsoleEntryPoint.Run(...)" which seemed to work fine for installing ocr languages but not for installing the "generic-import". It keeps asking to install the generic-import if I run it in the commandline on my own. As I was not able to ocr pdf files again I stopped my work here.