News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Can't Find Root Object Error

Started by cm_dheighton, December 08, 2022, 01:13:49 PM

Previous topic - Next topic

cm_dheighton

System: Windows Server, and Windows 10 Pro
Version: 12.52
Command Line:
exiftool.exe -all:all= "November 2022.pdf"

Output Error:
Error: Can't find Root object - November 2022.pdf
    0 image files updated
    1 files weren't updated due to errors


PDF File:
https://drive.google.com/file/d/1MtiQ2MPhUr7ubbf2Jzhwdkm91oTrs5OI/view?usp=sharing

Would appreciate any insight into this. PDF opens works fine in browser, Adobe, etc. We just want to strip out the metadata.

Phil Harvey

I'm heading out on a 1-week vacation today but I'll look at this when I return.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

cm_dheighton


Phil Harvey

The problem with this file is that the Info dictionary points to the same object as the Root dictionary, so ExifTool ignores the Root to avoid double-processing the same object because it was already processed as Info.  This seems to be a problem with whatever software wrote the PDF.

But if you are looking for ExifTool to strip metadata from a PDF, it can't do that by itself.  Even after running -exiftool -all= on a PDF, the metadata is not erased.  See point 2 in the ExifTool PDF tags documentation.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).