Page 1 of 1

Command line OCR tool. Look in subfolders

Posted: Fri Mar 08, 2019 12:34 am
by RHA
Sirs,

Using pdf-tools v 7.0 (build 325.1)

I cloned the built-in "OCR Pages" tool to a custom one named "OCR (PDF) Auto Incl sub-folders". Under "Choose input files", I set "Select folder". But, since I'd like to pass the folder name via the command line, I didn't pick Browse to select a folder. I also set "Look in subfolders".

The custom tool runs fine via Command line except it doesn't process the subfolders.

"C:\Program Files\Tracker Software\PDF Tools\PDFXTools.exe" /Log:full=yes "c:\local\OCRPDFsIn.log" /RunTool:showrep=no "{6D6B2518-3314-4BA1-ACBCDA252C1D0DD9}" "c:\foldername"

If this is by design, can the program be revised so that "Look in subfolders" also works for command-line?

Much appreciated.

Chris

Re: Command line OCR tool. Look in subfolders

Posted: Fri Mar 08, 2019 1:29 am
by TrackerSupp-Daniel
Hello RHA,

Thank you for reporting this, It seems that you have found two issue at once.

The dev team is looking into why this is not working as intended. By default it should properly take the settings you have chosen, including the "look in subfolders" function.
The other issue is that, we missed documenting the parameter to disable this function, I have notified our writer so that the manual can be updated to reflect the missing option soon.

For reference, when working correctly, you would use a similar line to the following only to DISABLE the "look in subfolders" functionality from the command line:

Code: Select all

PDFXTools.exe /RunTool:subfolder=no imagesToPDF "c:\FolderWithPictures"
(unfortunately, changing this to "subfolder=yes" has no effect)

Kind regards,

Re: Command line OCR tool. Look in subfolders

Posted: Fri Mar 08, 2019 1:50 am
by RHA
Thanks for the update, Daniel. I'm looking forward to the update.

Aloha!

Chris

Re: Command line OCR tool. Look in subfolders

Posted: Fri Mar 08, 2019 9:57 am
by Will - Tracker Supp
:D