fraserxu / electron-pdf

📄 A command line tool to generate PDF from URL, HTML or Markdown files.
MIT License
1.24k stars 136 forks source link

Support a fileSuffixFn option #283

Closed codecounselor closed 3 years ago

codecounselor commented 3 years ago
[options.fileSuffixFn] If provided, this function is invoked
with a numeric index (1 ... options.input.length) allowing the caller to manipulate
the file suffix in a custom way. (e.g. instead output_1.pdf, you could generate output_00001.pdf)