This commit is contained in:
John Whitington 2019-08-27 16:05:52 +01:00
parent 35bc734fff
commit d4f79b743e
1 changed files with 1 additions and 1 deletions

View File

@ -3484,7 +3484,7 @@ let get_xmp_info pdf name =
(* Set XMP info *)
let rec set_xml_field kind fieldname value = function
D data -> D data
| E (((n, n'), m), _ (*[D _]*)) when n = kind && n' = fieldname ->
| E (((n, n'), m), _ (*[D _]*)) when n = kind && n' = fieldname -> (* Replace anything inside, including nothing i.e <tag/> *)
E (((n, n'), m), [D value])
| E (x, ts) -> E (x, List.map (set_xml_field kind fieldname value) ts)