# nodejs-printer **Repository Path**: jackchanel/nodejs-printer ## Basic Information - **Project Name**: nodejs-printer - **Description**: 基于NodeJS的Windows平台打印机托管程序 core 基于 SumatraPDF命令行工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-31 - **Last Updated**: 2024-08-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # More Detail ## Printing options - `-print-to-default` : prints all files indicated on this command line to the system default printer. After printing, SumatraPDF exits immediately (check the error code for failure). - `-print-to ` : prints all files indicated on this command line to the named printer. After printing, SumatraPDF exits immediately (check the error code for failure). E.g. `-print-to "Microsoft XPS Document Writer"` prints all indicated files to the XPS virtual printer. - `-print-settings ` - used in combination with `-print-to` and `-print-to-default`. Allows to tweak some of the printing related settings without using the Print dialog. The settings-list is a comma separated list of page ranges and advanced options such as - `even` or `odd`. - `portrait` or `landscape` : can provide 90 degree rotation of contents (NOT the rotation of paper which must be pre-set by the choice of printer defaults) - `noscale`, `shrink` and `fit` - `color` or `monochrome` - `duplex`, `duplexshort`, `duplexlong` and `simplex` - `bin=` : select tray to print to - `paper=` : page size is `A2`, `A3`, `A4`, `A5`, `A6`, `letter`, `legal`, `tabloid`, `statement` - e.g. `-print-settings "1-3,5,10-8,odd,fit,bin=2"` prints pages 1, 3, 5, 9 (i.e. the odd pages from the ranges 1-3, 5-5 and 10-8) and scales them so that they fit into the printable area of the paper. - `-print-settings "3x"` : prints the document 3 times - `-silent` : used in combination with `-print-to` and `-print-to-default`. Silences any error messages related to command line printing. - `-print-dialog` : displays the Print dialog for all the files indicated on this command line. - `-exit-when-done` : used in combination with `-print-dialog` (and `-stress-test`). Exits SumatraPDF after the Print dialog has been dismissed and the document printed.