Running exiftool -a -G1 -s filename doesn't return tag that was updated.
I have a pdf file that another program creates tags in. I created a config file with the tags and updated one of the tags. If I open the file in Acrobat the correct data shows, however it does not when I use the -a -G1 -s options.
Config file 'se.config':
%Image::ExifTool::UserDefined = (
'Image::ExifTool::XMP::pdfx' => {
JobNum => {},
PeriodEndDate => {},
PeriodStartDate => {},
ProjectNum => {},
ReportBy => {},
ReportCodes => {},
ReportDated => {},
ReportNum => {},
ReportTitle => {},
},
);
1; # end
I then update the tag:
exiftool -config se.config -v2 -ReportNum=999 2077.PDF
Writing XMP-pdfx:ReportNum
======== 2077.PDF
Rewriting 2077.PDF...
Editing tags in: PDF XMP
Creating tags in: PDF XMP
Rewriting XMP
- XMP-pdfx:ReportNum = ''
+ XMP-pdfx:ReportNum = '999'
1 image files updated
Then list the tags using FAQ 3 options:
exiftool -a -G1 -s 2077.PDF
[ExifTool] ExifToolVersion : 11.11
[System] FileName : 2077.PDF
[System] Directory : .
[System] FileSize : 171 kB
[System] FileModifyDate : 2019:01:08 19:25:33-08:00
[System] FileAccessDate : 2019:01:08 19:25:33-08:00
[System] FileCreateDate : 2019:01:07 10:47:43-08:00
[System] FilePermissions : rw-rw-rw-
[File] FileType : PDF
[File] FileTypeExtension : pdf
[File] MIMEType : application/pdf
[PDF] PDFVersion : 1.4
[PDF] Linearized : No
[PDF] PageMode : UseNone
[PDF] PageCount : 4
[XMP-rdf] About : uuid:2C443B1E-F1E2-404F-974D-E21FEF8E72AA
[XMP-pdfx] ReportNum :
[XMP-pdfx] ReportTitle : Daily Inspection Report for 10/2/2017
[XMP-pdfx] ReportDated : 2017-10-02
[XMP-pdfx] ReportBy : 2077
[XMP-pdfx] ReportCodes : IOTH
[XMP-pdfx] ProjectNum : 70707
[XMP-pdfx] JobNum : 1
[XMP-pdfx] PeriodStartDate : 2017-10-02
[XMP-pdfx] PeriodEndDate : 2017-10-02
[XMP-pdfx] XMPVer : 2004-07-14
The tag command shows the tag updated (as does Adobe Acrobat), however the listing doesn't show the update. It doesn't seem the options -a -G1 -s are getting all the tags.