Menu

NAPS CLI - Create PDF With Empty Author Metadata Field

Dirk
2024-04-20
2024-04-20
  • Dirk

    Dirk - 2024-04-20

    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.

    1. Not using the --pdfauthor option inserts “NAPS2” into the author field.
    2. 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.
    3. 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?

     
  • Ben Olden-Cooligan

    Does --pdfauthor= (followed by nothing) or --pdfauthor="" work?

     

    Last edit: Ben Olden-Cooligan 2024-04-20
  • Dirk

    Dirk - 2024-04-20

    Great suggestion, I hadn't thought of this before!

    But, unfortunately, this does not seem to work:

    NAPS2.Console.exe -i test.tif' -n 0 --pdfauthor="" -o test.pdf
    
    ERROR(S):
      Token '--pdfauthor=' is not recognized.
    
    NAPS2.Console.exe -i test.tif' -n 0 --pdfauthor= -o test.pdf
    
    ERROR(S):
      Token '--pdfauthor=' is not recognized.
    
    NAPS2.Console.exe -i test.tif' -n 0 "--pdfauthor=" -o test.pdf
    
    ERROR(S):
      Token '--pdfauthor=' is not recognized.
    
     
  • Dirk

    Dirk - 2024-04-20

    Excellent! Thank you very much!

    I had tried "''" with no success before...

     

Log in to post a comment.