Menu

create PDF + TXT File

2016-02-24
2020-02-23
  • Christian von NF

    Hello, im just testing naps2. Very good ! I've 2 questions. 1. is it possible to create a serachable PDF and export the Text in a seperate txt-file ?

    1. can i generate file-names like Scan1-20160224-1632
     
  • Ben Olden-Cooligan

    Hi,

    1. No. While you can create a searchable PDF by using the OCR menu, NAPS2 can't currently create text files from OCR.
    2. Yes, you can use placeholders like "Scan1-$(YYYY)$(MM)$(DD)-$(hh)$(mm)" or "Scan$(n)".
     
  • Jon

    Jon - 2020-02-22

    Can placeholders be used in the cli? Windows doesn't seem to like the $(nnn) in the output filename. I get:

    nnn : The term 'nnn' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
    spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:36

    • ./naps2.console -o "D:\Scans\map_$(nnn).jpg" --jpegquality 100 --pro ...
    • ~~~
      • CategoryInfo : ObjectNotFound: (nnn:String) [], CommandNotFoundException
      • FullyQualifiedErrorId : CommandNotFoundException
     
    • Ben Olden-Cooligan

      Use single quotes instead of double quotes, powershell will try and parse it otherwise.

      ./naps2.console -o 'D:\Scans\map_$(nnn).jpg' ...

       
      • Jon

        Jon - 2020-02-23

        Thank You Ben, should have tried that myself! Doh! :-|

         

Log in to post a comment.

MongoDB Logo MongoDB