My application uses ExifTool to write XMP data to PDF files. This usually works just great.
However, for PDF files created with the Microsoft "Print to PDF" print driver which is part of Windows 10, I get one or more errors/warnings from ExifTool:
Info object (17 0 obj) not found at 48889 - <File Name>
Root object (1 0 obj) not found at 4...
Since it's only the PDF produced by the MS Print Driver I assume that this is a problem in the Microsoft software.
I have prepared a one page example PDF which exhibits the problem. The ARGS I use are:
-overwrite_original_in_place
-charset
FILENAME=UTF8
-m
-ex
-sep
-XMP-xmp:Rating=4
-xmp:DocumentID=xmp.did:572f3069-dd75-44d1-b4aa-199fc644d9a3
-xmp:OriginalDocumentID=xmp.did:572f3069-dd75-44d1-b4aa-199fc644d9a3
-xmp:InstanceID=xmp.iid:21dd4775-5fc0-4cde-9783-65034e14f466
-XMP:MetadataDate=now
-XMP:ModifyDate=now