0

Hello I am writing a bash script, this script must give ID to pdf file. How do I solve the this, is there a way? Example as using bash shell.

Document ID is:

$ exiftool example.pdf | grep 'Document ID'
Document ID        : uuid:d037451d-240e-4d82-ba6d-92390b1d2962

For example:

$ pdftool --setDocID "newID" example.pdf

1 Answer 1

0
exiftool -DocumentID="uuid:$newID" example.pdf

see examples on man exiftool

2
  • thanks, it's works
    – rojen
    Jun 26, 2020 at 22:40
  • 1
    newID=$(uuidgen) && exiftool -DocumentID="uuid:$newID" example.pdf So is such a use suitable?
    – rojen
    Jun 26, 2020 at 23:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .