(not recommended)
$ cp output.pdf output_test-1.pdf
# When using clean_pdf_metadata_v1()
$ pdf-clean.sh output-1.pdf
This still works, but only technically (because I'm awesome). We have to run qpdf immediately after running exiftool. If the qpdf fails or exiftool runs second -- the PDF will still retain metadata.
$ cp output.pdf output_test-2.pdf
$ pdf-clean.sh output-2.pdf
ExifTool Version Number : 13.25
File Name : output-2.pdf
Directory : .
File Size : 48 kB
File Modification Date/Time : 2025:04:10 20:42:15-05:00
File Access Date/Time : 2025:04:10 20:42:15-05:00
File Inode Change Date/Time : 2025:04:10 20:42:15-05:00
File Permissions : -rw-r--r--
File Type : PDF
File Type Extension : pdf
MIME Type : application/pdf
PDF Version : 1.4
Linearized : Yes
Create Date : 2025:04:11 00:58:05+00:00
Creator : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Joplin/3.2.13 Chrome/128.0.6613.178 Electron/32.2.0 Safari/537.36
Modify Date : 2025:04:11 00:58:05+00:00
Producer : Skia/PDF m128
Title : Latino Film Festival 3/13 Schedule
Page Count : 5
Would you like to continue? [y/n]: y
NICE: PDF file metadata is NOT restorable via exiftool!
ExifTool Version Number : 13.25
File Name : output-2.pdf
Directory : .
File Size : 1785 kB
File Modification Date/Time : 2025:04:10 20:42:24-05:00
File Access Date/Time : 2025:04:10 20:42:24-05:00
File Inode Change Date/Time : 2025:04:10 20:42:24-05:00
File Permissions : -rw-r--r--
File Type : PDF
File Type Extension : pdf
MIME Type : application/pdf
PDF Version : 1.5
Linearized : No
Page Count : 5
Yay, we have no more metadata in the file and I don't have to remember command line flags ever again.
Just put it in your path...