ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Mac2 on August 22, 2017, 03:07:14 PM

Title: Writing XMP to PDF files created with Microsoft Print to PDF fails
Post by: Mac2 on August 22, 2017, 03:07:14 PM
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
Title: Re: Writing XMP to PDF files created with Microsoft Print to PDF fails
Post by: Phil Harvey on August 27, 2017, 06:45:25 AM
I'm sorry but it will be a while (probably about a month) before I can look into this in detail.

- Phil
Title: Re: Writing XMP to PDF files created with Microsoft Print to PDF fails
Post by: Mac2 on August 27, 2017, 08:16:35 AM
Hi, Phil

no worries. Neither urgent nor important.
I just wanted to report this because it only happens with the built-in PDF printer in Windows. Not with PDF files produced by other software.
Title: Re: Writing XMP to PDF files created with Microsoft Print to PDF fails
Post by: david.paulo on May 27, 2020, 02:37:55 AM
Hi,

I am having the same issue - has this been resolved yet?  I am using exiftool 10.80

Rgds

David
Title: Re: Writing XMP to PDF files created with Microsoft Print to PDF fails
Post by: Phil Harvey on May 27, 2020, 09:29:41 PM
Yes, this is resolved in version 11.94.

- Phil