![]() ![]() ![]() For example, if you scan pages in the order "1, 3, 5, 2, 4, 6", using this option will result in the order "1, 2, 3, 4, 5, 6". Specifies that pages should be interleaved. nsole -o "F:\scan.pdf" -disableocr Order Options Specifies that OCR should NOT be used when generating PDFs. Specifies that OCR should be used when generating PDFs. Multiple codes can be separated by the '+' symbol. 'eng' for English, 'fra' for French, etc.). ![]() Specifies the three-letter code for the language used for OCR (e.g. If OCR options aren't specified, the options from the GUI are used. nsole -e "scan.pdf" -to -subject "Scanned Document" -body "Here it is." -autosend -silentsend OCR Options Note that Outlook may not allow the email to be sent without user approval. This may result in an error if authentication is required. Specifies that the user should not be prompted to authenticate. Specifies that the email should be sent without prompting the user to edit it first. Specifies the body text of the email message. Specifies the subject of the email message. Specifies one or more addresses (comma-separated) of the email recipients. These options are only applicable if -e/-email is specified. nsole -o "F:\scan.tiff" -tiffcomp none Email Options Specifies the type of compression used for TIFF files ("auto", "lzw", "ccitt4", or "none"). (Default: 75) Specifies the quality of saved JPEG files (0-100). nsole -o "F:\pdfa.pdf" -pdfcompat A1-b Image Options Specifies the standard used for the generated PDF ("default", "A1-b", "A2-b", "A3-b", or "A3-u"). nsole -o "F:\encrypted.pdf" -usesavedencryptconfig Specifies that the encryption configured in the GUI should be used for the generated PDF. nsole -o "F:\encrypted.pdf" -encryptconfig "F:\pdfencryption.xml" Specifies the name and path of an XML file to configure encryption for the generated PDF. Specifies that the metadata configured in the GUI should be used for generated PDF. nsole -o "F:\scan.pdf" -pdftitle "January Receipts" -pdfauthor "John Smith" -pdfsubject "Receipts" -pdfkeywords "January, Receipts" Specifies the keywords for generated PDF metadata. Specifies the subject for generated PDF metadata. Specifies the author for generated PDF metadata. Specifies the title for generated PDF metadata. These options are only applicable if the output file is a PDF. nsole -i "F:\abcde.pdf F:\r.pdf F:\abcde.pdf" -n 0 -o "F:\abrde.pdf" Note: With this notation, page numbers start at 0! To only import part of a PDF or TIFF file, you can use slice notation. nsole -i "F:\a.png" -n 0 -o "F:\a.jpg" Slicing Imported Files The -i/-import option can be used in combination with the option "-n 0" to combine multiple files together or to change the type of a file without doing any scanning. nsole -i "F:\encrypted.pdf" -importpassword "123456" -o "F:\complete scan.pdf" Combining and Converting Files Specifies the password to be used to import any encrypted PDFs. nsole -i "F:\incomplete scan.pdf" -o "F:\complete scan.pdf" Multiple files are separated by a semicolon (" "). Imported files are prepended to the output in the order they are specified. Specifies the name and path of one or more pdf/image files to import. Specifies that the Auto Save settings from the selected profile should be used. ".pdf" for a PDF file, ".jpg" for a JPEG image, etc.). The extension determines the attachment type (e.g. Specifies that an email should be sent with the scan attached with the given file name and extension. The extension determines the output type (e.g. Specifies the path, name, and extension of the output file to save. Required OptionsĪt least one of these options must be specified. Some options are flags, and some are expected to be provided a value. "-output"), and some have a short form (e.g. The NAPS2 CLI uses standard unix-style options. Windows (Powershell)įunction nsole MacĪlias nsole="/Applications/NAPS2.app/Contents/MacOS/NAPS2 console" Linux (deb/rpm)Īlias nsole="naps2 console" Linux (Flatpak)Īlias nsole="flatpak run 2 console" Usage You can set up an alias to make it simple. Using the CLI is slightly different depending on the platform. This allows scanning and saving documents to be automated and/or scripted. NAPS2, in addition to the primary GUI, also offers a command-line interface (CLI). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |