Skip to content

Instantly share code, notes, and snippets.

@mkraft
Last active June 22, 2023 15:46
Show Gist options
  • Save mkraft/b532a29929f50f049b1601a5e407aa3f to your computer and use it in GitHub Desktop.
Save mkraft/b532a29929f50f049b1601a5e407aa3f to your computer and use it in GitHub Desktop.
Using exiftool to update a custom PDF property.

Update a PDF custom property named "signature":

exiftool -config exiftool_config -signatures='[{"page":1,"x":342,"y":646}]' -form_data='[{"name":"POS-010[0].Page2[0].Sign[0].SigDate[0]","value":"[date]"}]' my.pdf

Verify the values:

exiftool  -config exiftool_config -signatures -form_data my.pdf
%Image::ExifTool::UserDefined =
(
'Image::ExifTool::PDF::Info' =>
{
signatures => { },
form_data => { },
},
);
1; #end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment