I am using NAPS2 CLI (7.4.0.0) for converting a bunch of imported TIFF files to PDF. I would like the PDF files to have an empty author metadata field. But I am struggling to achieve that.
Not using the --pdfauthor option inserts “NAPS2” into the author field.
Using --pdfauthor "" leads to various errors, depending on subsequent options. As far as I can tell the empty string argument is skipped and subsequent options are shifted.
Using --pdfauthor " " makes the author field look empty, but obviously it contains a single space character.
How am I supposed to create a PDF file with an empty author metadata field with NAPS2?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using NAPS2 CLI (7.4.0.0) for converting a bunch of imported TIFF files to PDF. I would like the PDF files to have an empty author metadata field. But I am struggling to achieve that.
--pdfauthor
option inserts “NAPS2” into the author field.--pdfauthor ""
leads to various errors, depending on subsequent options. As far as I can tell the empty string argument is skipped and subsequent options are shifted.--pdfauthor " "
makes the author field look empty, but obviously it contains a single space character.How am I supposed to create a PDF file with an empty author metadata field with NAPS2?
Does
--pdfauthor=
(followed by nothing) or--pdfauthor=""
work?Last edit: Ben Olden-Cooligan 2024-04-20
Great suggestion, I hadn't thought of this before!
But, unfortunately, this does not seem to work:
It looks like
--pdfauthor '""'
works.https://stackoverflow.com/questions/10297002/passing-empty-arguments-to-executables-using-powershell
Excellent! Thank you very much!
I had tried
"''"
with no success before...