exiftool_vendored 10.43.0 → 10.49.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of exiftool_vendored might be problematic. Click here for more details.

Files changed (1167) hide show
  1. checksums.yaml +4 -4
  2. data/bin/Image-ExifTool-10.49/Changes +7805 -0
  3. data/bin/Image-ExifTool-10.49/MANIFEST +1009 -0
  4. data/bin/Image-ExifTool-10.49/META.json +51 -0
  5. data/bin/Image-ExifTool-10.49/META.yml +31 -0
  6. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/Makefile.PL +0 -0
  7. data/bin/Image-ExifTool-10.49/README +241 -0
  8. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/exif2iptc.args +0 -0
  9. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/exif2xmp.args +0 -0
  10. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/gps2xmp.args +0 -0
  11. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/iptc2exif.args +0 -0
  12. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/iptc2xmp.args +0 -0
  13. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/iptcCore.args +0 -0
  14. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/pdf2xmp.args +0 -0
  15. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/xmp2exif.args +0 -0
  16. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/xmp2gps.args +0 -0
  17. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/xmp2iptc.args +0 -0
  18. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/arg_files/xmp2pdf.args +0 -0
  19. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/config_files/age.config +0 -0
  20. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/config_files/bibble.config +0 -0
  21. data/bin/Image-ExifTool-10.49/config_files/convert_regions.config +89 -0
  22. data/bin/Image-ExifTool-10.49/config_files/example.config +344 -0
  23. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/config_files/fotoware.config +0 -0
  24. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/config_files/gps2utm.config +0 -0
  25. data/bin/Image-ExifTool-10.49/config_files/photoshop_paths.config +168 -0
  26. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/config_files/picasa_faces.config +0 -0
  27. data/bin/Image-ExifTool-10.49/config_files/time_zone.config +96 -0
  28. data/bin/Image-ExifTool-10.49/exiftool +6522 -0
  29. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/fmt_files/gpx.fmt +0 -0
  30. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/fmt_files/gpx_wpt.fmt +0 -0
  31. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/fmt_files/kml.fmt +0 -0
  32. data/bin/Image-ExifTool-10.49/html/ExifTool.html +2140 -0
  33. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/MIE1.1-20070121.pdf +0 -0
  34. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/Shift.html +0 -0
  35. data/bin/Image-ExifTool-10.49/html/TagNames/AFCP.html +53 -0
  36. data/bin/Image-ExifTool-10.49/html/TagNames/AIFF.html +146 -0
  37. data/bin/Image-ExifTool-10.49/html/TagNames/APE.html +149 -0
  38. data/bin/Image-ExifTool-10.49/html/TagNames/APP12.html +188 -0
  39. data/bin/Image-ExifTool-10.49/html/TagNames/ASF.html +1066 -0
  40. data/bin/Image-ExifTool-10.49/html/TagNames/Apple.html +86 -0
  41. data/bin/Image-ExifTool-10.49/html/TagNames/Audible.html +177 -0
  42. data/bin/Image-ExifTool-10.49/html/TagNames/BMP.html +233 -0
  43. data/bin/Image-ExifTool-10.49/html/TagNames/BPG.html +118 -0
  44. data/bin/Image-ExifTool-10.49/html/TagNames/Canon.html +9754 -0
  45. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/CanonCustom.html +0 -0
  46. data/bin/Image-ExifTool-10.49/html/TagNames/CanonRaw.html +561 -0
  47. data/bin/Image-ExifTool-10.49/html/TagNames/CanonVRD.html +2020 -0
  48. data/bin/Image-ExifTool-10.49/html/TagNames/Casio.html +1606 -0
  49. data/bin/Image-ExifTool-10.49/html/TagNames/Composite.html +745 -0
  50. data/bin/Image-ExifTool-10.49/html/TagNames/DICOM.html +15762 -0
  51. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/DJI.html +0 -0
  52. data/bin/Image-ExifTool-10.49/html/TagNames/DNG.html +295 -0
  53. data/bin/Image-ExifTool-10.49/html/TagNames/DPX.html +229 -0
  54. data/bin/Image-ExifTool-10.49/html/TagNames/DV.html +75 -0
  55. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/DarwinCore.html +0 -0
  56. data/bin/Image-ExifTool-10.49/html/TagNames/DjVu.html +313 -0
  57. data/bin/Image-ExifTool-10.49/html/TagNames/EXE.html +741 -0
  58. data/bin/Image-ExifTool-10.49/html/TagNames/EXIF.html +3493 -0
  59. data/bin/Image-ExifTool-10.49/html/TagNames/Extra.html +475 -0
  60. data/bin/Image-ExifTool-10.49/html/TagNames/FLAC.html +183 -0
  61. data/bin/Image-ExifTool-10.49/html/TagNames/FLIF.html +84 -0
  62. data/bin/Image-ExifTool-10.49/html/TagNames/FLIR.html +1340 -0
  63. data/bin/Image-ExifTool-10.49/html/TagNames/Flash.html +419 -0
  64. data/bin/Image-ExifTool-10.49/html/TagNames/FlashPix.html +1475 -0
  65. data/bin/Image-ExifTool-10.49/html/TagNames/Font.html +485 -0
  66. data/bin/Image-ExifTool-10.49/html/TagNames/FotoStation.html +103 -0
  67. data/bin/Image-ExifTool-10.49/html/TagNames/FujiFilm.html +876 -0
  68. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/GE.html +0 -0
  69. data/bin/Image-ExifTool-10.49/html/TagNames/GIF.html +116 -0
  70. data/bin/Image-ExifTool-10.49/html/TagNames/GIMP.html +140 -0
  71. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/GPS.html +0 -0
  72. data/bin/Image-ExifTool-10.49/html/TagNames/GeoTiff.html +2298 -0
  73. data/bin/Image-ExifTool-10.49/html/TagNames/H264.html +393 -0
  74. data/bin/Image-ExifTool-10.49/html/TagNames/HP.html +155 -0
  75. data/bin/Image-ExifTool-10.49/html/TagNames/HTML.html +666 -0
  76. data/bin/Image-ExifTool-10.49/html/TagNames/ICC_Profile.html +711 -0
  77. data/bin/Image-ExifTool-10.49/html/TagNames/ID3.html +1593 -0
  78. data/bin/Image-ExifTool-10.49/html/TagNames/IPTC.html +903 -0
  79. data/bin/Image-ExifTool-10.49/html/TagNames/ISO.html +159 -0
  80. data/bin/Image-ExifTool-10.49/html/TagNames/ITC.html +90 -0
  81. data/bin/Image-ExifTool-10.49/html/TagNames/JFIF.html +62 -0
  82. data/bin/Image-ExifTool-10.49/html/TagNames/JPEG.html +602 -0
  83. data/bin/Image-ExifTool-10.49/html/TagNames/JSON.html +25 -0
  84. data/bin/Image-ExifTool-10.49/html/TagNames/JVC.html +56 -0
  85. data/bin/Image-ExifTool-10.49/html/TagNames/Jpeg2000.html +466 -0
  86. data/bin/Image-ExifTool-10.49/html/TagNames/Kodak.html +1891 -0
  87. data/bin/Image-ExifTool-10.49/html/TagNames/KyoceraRaw.html +92 -0
  88. data/bin/Image-ExifTool-10.49/html/TagNames/LNK.html +478 -0
  89. data/bin/Image-ExifTool-10.49/html/TagNames/Leaf.html +871 -0
  90. data/bin/Image-ExifTool-10.49/html/TagNames/Lytro.html +122 -0
  91. data/bin/Image-ExifTool-10.49/html/TagNames/M2TS.html +133 -0
  92. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/MIE.html +0 -0
  93. data/bin/Image-ExifTool-10.49/html/TagNames/MIFF.html +196 -0
  94. data/bin/Image-ExifTool-10.49/html/TagNames/MNG.html +847 -0
  95. data/bin/Image-ExifTool-10.49/html/TagNames/MOI.html +60 -0
  96. data/bin/Image-ExifTool-10.49/html/TagNames/MPC.html +97 -0
  97. data/bin/Image-ExifTool-10.49/html/TagNames/MPEG.html +249 -0
  98. data/bin/Image-ExifTool-10.49/html/TagNames/MPF.html +199 -0
  99. data/bin/Image-ExifTool-10.49/html/TagNames/MWG.html +584 -0
  100. data/bin/Image-ExifTool-10.49/html/TagNames/MXF.html +6673 -0
  101. data/bin/Image-ExifTool-10.49/html/TagNames/MacOS.html +400 -0
  102. data/bin/Image-ExifTool-10.49/html/TagNames/Matroska.html +1114 -0
  103. data/bin/Image-ExifTool-10.49/html/TagNames/Microsoft.html +2126 -0
  104. data/bin/Image-ExifTool-10.49/html/TagNames/Minolta.html +2640 -0
  105. data/bin/Image-ExifTool-10.49/html/TagNames/MinoltaRaw.html +326 -0
  106. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/Motorola.html +0 -0
  107. data/bin/Image-ExifTool-10.49/html/TagNames/Nikon.html +6018 -0
  108. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/NikonCapture.html +0 -0
  109. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/NikonCustom.html +0 -0
  110. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/Nintendo.html +0 -0
  111. data/bin/Image-ExifTool-10.49/html/TagNames/OOXML.html +280 -0
  112. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/Ogg.html +0 -0
  113. data/bin/Image-ExifTool-10.49/html/TagNames/Olympus.html +3655 -0
  114. data/bin/Image-ExifTool-10.49/html/TagNames/OpenEXR.html +222 -0
  115. data/bin/Image-ExifTool-10.49/html/TagNames/Opus.html +62 -0
  116. data/bin/Image-ExifTool-10.49/html/TagNames/PDF.html +745 -0
  117. data/bin/Image-ExifTool-10.49/html/TagNames/PGF.html +80 -0
  118. data/bin/Image-ExifTool-10.49/html/TagNames/PICT.html +753 -0
  119. data/bin/Image-ExifTool-10.49/html/TagNames/PLIST.html +86 -0
  120. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/PLUS.html +0 -0
  121. data/bin/Image-ExifTool-10.49/html/TagNames/PNG.html +578 -0
  122. data/bin/Image-ExifTool-10.49/html/TagNames/PSP.html +160 -0
  123. data/bin/Image-ExifTool-10.49/html/TagNames/Palm.html +388 -0
  124. data/bin/Image-ExifTool-10.49/html/TagNames/Panasonic.html +1706 -0
  125. data/bin/Image-ExifTool-10.49/html/TagNames/PanasonicRaw.html +471 -0
  126. data/bin/Image-ExifTool-10.49/html/TagNames/Pentax.html +4845 -0
  127. data/bin/Image-ExifTool-10.49/html/TagNames/PhaseOne.html +263 -0
  128. data/bin/Image-ExifTool-10.49/html/TagNames/PhotoCD.html +402 -0
  129. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/PhotoMechanic.html +0 -0
  130. data/bin/Image-ExifTool-10.49/html/TagNames/Photoshop.html +739 -0
  131. data/bin/Image-ExifTool-10.49/html/TagNames/PostScript.html +125 -0
  132. data/bin/Image-ExifTool-10.49/html/TagNames/PrintIM.html +31 -0
  133. data/bin/Image-ExifTool-10.49/html/TagNames/Qualcomm.html +4778 -0
  134. data/bin/Image-ExifTool-10.49/html/TagNames/QuickTime.html +6252 -0
  135. data/bin/Image-ExifTool-10.49/html/TagNames/RIFF.html +1382 -0
  136. data/bin/Image-ExifTool-10.49/html/TagNames/RSRC.html +74 -0
  137. data/bin/Image-ExifTool-10.49/html/TagNames/RTF.html +150 -0
  138. data/bin/Image-ExifTool-10.49/html/TagNames/Radiance.html +87 -0
  139. data/bin/Image-ExifTool-10.49/html/TagNames/Rawzor.html +45 -0
  140. data/bin/Image-ExifTool-10.49/html/TagNames/Real.html +780 -0
  141. data/bin/Image-ExifTool-10.49/html/TagNames/Reconyx.html +132 -0
  142. data/bin/Image-ExifTool-10.49/html/TagNames/Ricoh.html +805 -0
  143. data/bin/Image-ExifTool-10.49/html/TagNames/Samsung.html +682 -0
  144. data/bin/Image-ExifTool-10.49/html/TagNames/Sanyo.html +366 -0
  145. data/bin/Image-ExifTool-10.49/html/TagNames/Scalado.html +45 -0
  146. data/bin/Image-ExifTool-10.49/html/TagNames/Shortcuts.html +280 -0
  147. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/Sigma.html +0 -0
  148. data/bin/Image-ExifTool-10.49/html/TagNames/SigmaRaw.html +438 -0
  149. data/bin/Image-ExifTool-10.49/html/TagNames/Sony.html +10348 -0
  150. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/SonyIDC.html +0 -0
  151. data/bin/Image-ExifTool-10.49/html/TagNames/Stim.html +200 -0
  152. data/bin/Image-ExifTool-10.49/html/TagNames/Theora.html +102 -0
  153. data/bin/Image-ExifTool-10.49/html/TagNames/Torrent.html +187 -0
  154. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/Unknown.html +0 -0
  155. data/bin/Image-ExifTool-10.49/html/TagNames/VCard.html +433 -0
  156. data/bin/Image-ExifTool-10.49/html/TagNames/Vorbis.html +243 -0
  157. data/bin/Image-ExifTool-10.49/html/TagNames/XMP.html +10158 -0
  158. data/bin/Image-ExifTool-10.49/html/TagNames/ZIP.html +205 -0
  159. data/bin/Image-ExifTool-10.49/html/TagNames/iWork.html +49 -0
  160. data/bin/Image-ExifTool-10.49/html/TagNames/index.html +220 -0
  161. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/TagNames/style.css +0 -0
  162. data/bin/Image-ExifTool-10.49/html/ancient_history.html +8365 -0
  163. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/canon_raw.html +0 -0
  164. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/commentary.html +0 -0
  165. data/bin/Image-ExifTool-10.49/html/config.html +356 -0
  166. data/bin/Image-ExifTool-10.49/html/data_members.html +293 -0
  167. data/bin/Image-ExifTool-10.49/html/exiftool_pod.html +1887 -0
  168. data/bin/Image-ExifTool-10.49/html/faq.html +1597 -0
  169. data/bin/Image-ExifTool-10.49/html/filename.html +352 -0
  170. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/geotag.html +0 -0
  171. data/bin/Image-ExifTool-10.49/html/history.html +446 -0
  172. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/htmldump.html +0 -0
  173. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/idiosyncracies.html +0 -0
  174. data/bin/Image-ExifTool-10.49/html/index.html +1370 -0
  175. data/bin/Image-ExifTool-10.49/html/install.html +261 -0
  176. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/metafiles.html +0 -0
  177. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/overview.png +0 -0
  178. data/bin/Image-ExifTool-10.49/html/standards.html +294 -0
  179. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/struct.html +0 -0
  180. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/style.css +0 -0
  181. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/under.html +0 -0
  182. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/verbose.html +0 -0
  183. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/html/writing.html +0 -0
  184. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/File/RandomAccess.pm +0 -0
  185. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/File/RandomAccess.pod +0 -0
  186. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool.pm +7799 -0
  187. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool.pod +2593 -0
  188. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/AES.pm +0 -0
  189. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/AFCP.pm +0 -0
  190. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/AIFF.pm +0 -0
  191. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/APE.pm +0 -0
  192. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/APP12.pm +0 -0
  193. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/ASF.pm +0 -0
  194. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Apple.pm +0 -0
  195. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Audible.pm +0 -0
  196. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/BMP.pm +0 -0
  197. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/BPG.pm +0 -0
  198. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/BZZ.pm +0 -0
  199. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/BigTIFF.pm +0 -0
  200. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/BuildTagLookup.pm +2561 -0
  201. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Canon.pm +8937 -0
  202. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/CanonCustom.pm +0 -0
  203. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/CanonRaw.pm +0 -0
  204. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/CanonVRD.pm +0 -0
  205. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/CaptureOne.pm +0 -0
  206. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Casio.pm +0 -0
  207. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Charset.pm +428 -0
  208. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Arabic.pm +0 -0
  209. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Baltic.pm +0 -0
  210. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Cyrillic.pm +0 -0
  211. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Greek.pm +0 -0
  212. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Hebrew.pm +0 -0
  213. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/JIS.pm +0 -0
  214. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Latin.pm +0 -0
  215. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Latin2.pm +0 -0
  216. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacArabic.pm +0 -0
  217. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacChineseCN.pm +0 -0
  218. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacChineseTW.pm +0 -0
  219. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacCroatian.pm +0 -0
  220. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacCyrillic.pm +0 -0
  221. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacGreek.pm +0 -0
  222. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacHebrew.pm +0 -0
  223. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacIceland.pm +0 -0
  224. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacJapanese.pm +0 -0
  225. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacKorean.pm +0 -0
  226. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacLatin2.pm +0 -0
  227. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacRSymbol.pm +0 -0
  228. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacRoman.pm +0 -0
  229. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacRomanian.pm +0 -0
  230. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacThai.pm +0 -0
  231. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/MacTurkish.pm +0 -0
  232. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/PDFDoc.pm +0 -0
  233. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/ShiftJIS.pm +0 -0
  234. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Symbol.pm +0 -0
  235. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Thai.pm +0 -0
  236. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Turkish.pm +0 -0
  237. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Charset/Vietnam.pm +0 -0
  238. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/DICOM.pm +0 -0
  239. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/DJI.pm +0 -0
  240. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/DNG.pm +0 -0
  241. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/DPX.pm +0 -0
  242. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/DV.pm +0 -0
  243. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/DarwinCore.pm +0 -0
  244. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/DjVu.pm +0 -0
  245. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/EXE.pm +0 -0
  246. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Exif.pm +6144 -0
  247. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/FLAC.pm +0 -0
  248. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/FLIF.pm +0 -0
  249. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/FLIR.pm +0 -0
  250. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Fixup.pm +0 -0
  251. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Flash.pm +0 -0
  252. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/FlashPix.pm +1971 -0
  253. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Font.pm +0 -0
  254. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/FotoStation.pm +0 -0
  255. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/FujiFilm.pm +1272 -0
  256. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/GE.pm +0 -0
  257. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/GIF.pm +0 -0
  258. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/GIMP.pm +0 -0
  259. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/GPS.pm +0 -0
  260. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/GeoTiff.pm +0 -0
  261. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Geotag.pm +0 -0
  262. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/H264.pm +0 -0
  263. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/HP.pm +0 -0
  264. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/HTML.pm +0 -0
  265. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/HtmlDump.pm +0 -0
  266. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/ICC_Profile.pm +0 -0
  267. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/ID3.pm +0 -0
  268. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/IPTC.pm +0 -0
  269. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/ISO.pm +0 -0
  270. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/ITC.pm +0 -0
  271. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Import.pm +340 -0
  272. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/InDesign.pm +0 -0
  273. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/JPEG.pm +0 -0
  274. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/JPEGDigest.pm +2617 -0
  275. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/JSON.pm +142 -0
  276. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/JVC.pm +0 -0
  277. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Jpeg2000.pm +0 -0
  278. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Kodak.pm +0 -0
  279. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/KyoceraRaw.pm +0 -0
  280. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/LNK.pm +0 -0
  281. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/cs.pm +0 -0
  282. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/de.pm +0 -0
  283. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/en_ca.pm +0 -0
  284. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/en_gb.pm +0 -0
  285. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/es.pm +0 -0
  286. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/fi.pm +0 -0
  287. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/fr.pm +0 -0
  288. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/it.pm +0 -0
  289. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/ja.pm +0 -0
  290. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/ko.pm +0 -0
  291. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/nl.pm +0 -0
  292. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/pl.pm +0 -0
  293. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/ru.pm +0 -0
  294. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/sv.pm +0 -0
  295. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/tr.pm +0 -0
  296. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/zh_cn.pm +0 -0
  297. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lang/zh_tw.pm +0 -0
  298. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Leaf.pm +0 -0
  299. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Lytro.pm +0 -0
  300. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/M2TS.pm +0 -0
  301. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MIE.pm +0 -0
  302. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MIEUnits.pod +0 -0
  303. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MIFF.pm +0 -0
  304. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MNG.pm +0 -0
  305. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MOI.pm +0 -0
  306. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MPC.pm +0 -0
  307. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MPEG.pm +0 -0
  308. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MPF.pm +0 -0
  309. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MWG.pm +0 -0
  310. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MXF.pm +0 -0
  311. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/MacOS.pm +469 -0
  312. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MakerNotes.pm +0 -0
  313. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Matroska.pm +0 -0
  314. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Microsoft.pm +0 -0
  315. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Minolta.pm +3002 -0
  316. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/MinoltaRaw.pm +0 -0
  317. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Motorola.pm +0 -0
  318. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Nikon.pm +8175 -0
  319. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/NikonCapture.pm +0 -0
  320. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/NikonCustom.pm +0 -0
  321. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Nintendo.pm +0 -0
  322. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/OOXML.pm +0 -0
  323. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Ogg.pm +0 -0
  324. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Olympus.pm +0 -0
  325. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/OpenEXR.pm +0 -0
  326. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Opus.pm +0 -0
  327. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/PDF.pm +2378 -0
  328. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PGF.pm +0 -0
  329. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PICT.pm +0 -0
  330. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/PLIST.pm +455 -0
  331. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PLUS.pm +0 -0
  332. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/PNG.pm +1371 -0
  333. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PPM.pm +0 -0
  334. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PSP.pm +0 -0
  335. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Palm.pm +0 -0
  336. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Panasonic.pm +2386 -0
  337. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PanasonicRaw.pm +0 -0
  338. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Pentax.pm +6200 -0
  339. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PhaseOne.pm +0 -0
  340. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PhotoCD.pm +0 -0
  341. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PhotoMechanic.pm +0 -0
  342. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Photoshop.pm +966 -0
  343. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PostScript.pm +0 -0
  344. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/PrintIM.pm +0 -0
  345. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Qualcomm.pm +0 -0
  346. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/QuickTime.pm +6729 -0
  347. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/README +1032 -0
  348. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/RIFF.pm +0 -0
  349. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/RSRC.pm +0 -0
  350. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/RTF.pm +0 -0
  351. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Radiance.pm +0 -0
  352. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Rawzor.pm +0 -0
  353. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Real.pm +0 -0
  354. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Reconyx.pm +0 -0
  355. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Ricoh.pm +0 -0
  356. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Samsung.pm +0 -0
  357. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Sanyo.pm +0 -0
  358. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Scalado.pm +0 -0
  359. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Shift.pl +0 -0
  360. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Shortcuts.pm +0 -0
  361. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Sigma.pm +0 -0
  362. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/SigmaRaw.pm +0 -0
  363. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Sony.pm +9827 -0
  364. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/SonyIDC.pm +0 -0
  365. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Stim.pm +0 -0
  366. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/TagInfoXML.pm +0 -0
  367. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/TagLookup.pm +9608 -0
  368. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/TagNames.pod +30849 -0
  369. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Theora.pm +0 -0
  370. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Torrent.pm +0 -0
  371. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Unknown.pm +0 -0
  372. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/VCard.pm +0 -0
  373. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Validate.pm +320 -0
  374. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/Vorbis.pm +0 -0
  375. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/WriteCanonRaw.pl +0 -0
  376. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/WriteExif.pl +0 -0
  377. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/WriteIPTC.pl +0 -0
  378. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/WritePDF.pl +0 -0
  379. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/WritePNG.pl +0 -0
  380. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/WritePhotoshop.pl +0 -0
  381. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/WritePostScript.pl +0 -0
  382. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/WriteQuickTime.pl +0 -0
  383. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/WriteXMP.pl +1389 -0
  384. data/bin/Image-ExifTool-10.49/lib/Image/ExifTool/Writer.pl +6399 -0
  385. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/XMP.pm +0 -0
  386. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/XMP2.pl +0 -0
  387. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/XMPStruct.pl +0 -0
  388. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/ZIP.pm +0 -0
  389. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/lib/Image/ExifTool/iWork.pm +0 -0
  390. data/bin/Image-ExifTool-10.49/perl-Image-ExifTool.spec +113 -0
  391. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/AFCP.t +0 -0
  392. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/AFCP_2.out +0 -0
  393. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/AFCP_3.out +0 -0
  394. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/AIFF.t +0 -0
  395. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/AIFF_2.out +0 -0
  396. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/APE.t +0 -0
  397. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/APE_2.out +0 -0
  398. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/APE_3.out +0 -0
  399. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ASF.t +0 -0
  400. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ASF_2.out +0 -0
  401. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Apple.t +0 -0
  402. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Apple_2.out +0 -0
  403. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Audible.t +0 -0
  404. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Audible_2.out +0 -0
  405. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/BMP.t +0 -0
  406. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/BMP_2.out +0 -0
  407. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/BPG.t +0 -0
  408. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/BPG_2.out +0 -0
  409. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/BigTIFF.t +0 -0
  410. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/BigTIFF_2.out +0 -0
  411. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Canon.t +0 -0
  412. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonRaw.t +0 -0
  413. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonRaw_2.out +0 -0
  414. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonRaw_4.out +0 -0
  415. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonRaw_5.out +0 -0
  416. data/bin/Image-ExifTool-10.49/t/CanonRaw_6.out +234 -0
  417. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonRaw_7.out +0 -0
  418. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD.t +0 -0
  419. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_11.out +0 -0
  420. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_12.out +0 -0
  421. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_13.out +0 -0
  422. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_14.out +0 -0
  423. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_15.out +0 -0
  424. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_16.out +0 -0
  425. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_17.out +0 -0
  426. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_18.out +0 -0
  427. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_19.out +0 -0
  428. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_2.out +0 -0
  429. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_20.out +0 -0
  430. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_21.out +0 -0
  431. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_3.out +0 -0
  432. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_4.out +0 -0
  433. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_5.out +0 -0
  434. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_6.out +0 -0
  435. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_7.out +0 -0
  436. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_8.out +0 -0
  437. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/CanonVRD_9.out +0 -0
  438. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Canon_2.out +0 -0
  439. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Canon_3.out +0 -0
  440. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Casio.t +0 -0
  441. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Casio_2.out +0 -0
  442. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Casio_3.out +0 -0
  443. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Casio_4.out +0 -0
  444. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Casio_5.out +0 -0
  445. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Casio_6.out +0 -0
  446. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DICOM.t +0 -0
  447. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DICOM_2.out +0 -0
  448. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DNG.t +0 -0
  449. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DNG_2.out +0 -0
  450. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DNG_3.out +0 -0
  451. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DPX.t +0 -0
  452. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DPX_2.out +0 -0
  453. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DV.t +0 -0
  454. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DV_2.out +0 -0
  455. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DjVu.t +0 -0
  456. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/DjVu_2.out +0 -0
  457. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/EXE.t +0 -0
  458. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/EXE_2.out +0 -0
  459. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/EXE_3.out +0 -0
  460. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/EXE_4.out +0 -0
  461. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/EXE_5.out +0 -0
  462. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/EXE_6.out +0 -0
  463. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/EXE_7.out +0 -0
  464. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool.t +0 -0
  465. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_16.out +0 -0
  466. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_17.out +0 -0
  467. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_2.out +0 -0
  468. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_20.out +0 -0
  469. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_21.out +0 -0
  470. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_22.out +0 -0
  471. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_23.out +0 -0
  472. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_24.out +0 -0
  473. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_25.out +0 -0
  474. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_26.out +0 -0
  475. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_27.out +0 -0
  476. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_28.out +0 -0
  477. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_29.out +0 -0
  478. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_3.out +0 -0
  479. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_30.out +0 -0
  480. data/bin/Image-ExifTool-10.49/t/ExifTool_31.out +5 -0
  481. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_4.out +0 -0
  482. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_5.out +0 -0
  483. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_6.out +0 -0
  484. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_7.out +0 -0
  485. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_8.out +0 -0
  486. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ExifTool_9.out +0 -0
  487. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLAC.t +0 -0
  488. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLAC_2.out +0 -0
  489. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLAC_3.out +0 -0
  490. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLIF.t +0 -0
  491. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLIF_2.out +0 -0
  492. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLIF_3.out +0 -0
  493. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLIF_4.out +0 -0
  494. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLIF_5.out +0 -0
  495. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLIF_6.out +0 -0
  496. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLIR.t +0 -0
  497. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLIR_2.out +0 -0
  498. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FLIR_3.out +0 -0
  499. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Flash.t +0 -0
  500. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FlashPix.t +0 -0
  501. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FlashPix_2.out +0 -0
  502. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Flash_2.out +0 -0
  503. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Flash_3.out +0 -0
  504. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Font.t +0 -0
  505. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Font_2.out +0 -0
  506. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Font_3.out +0 -0
  507. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Font_4.out +0 -0
  508. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Font_5.out +0 -0
  509. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Font_6.out +0 -0
  510. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Font_7.out +0 -0
  511. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FotoStation.t +0 -0
  512. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FotoStation_2.out +0 -0
  513. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FotoStation_3.out +0 -0
  514. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FujiFilm.t +0 -0
  515. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FujiFilm_2.out +0 -0
  516. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FujiFilm_3.out +0 -0
  517. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FujiFilm_4.out +0 -0
  518. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/FujiFilm_5.out +0 -0
  519. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GE.t +0 -0
  520. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GE_2.out +0 -0
  521. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GE_3.out +0 -0
  522. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GIF.t +0 -0
  523. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GIF_2.out +0 -0
  524. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GIF_3.out +0 -0
  525. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GIF_4.out +0 -0
  526. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GIMP.t +0 -0
  527. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GIMP_2.out +0 -0
  528. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GPS.t +0 -0
  529. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GPS_2.out +0 -0
  530. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GPS_3.out +0 -0
  531. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GeoTiff.t +0 -0
  532. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GeoTiff_2.out +0 -0
  533. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GeoTiff_3.out +0 -0
  534. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/GeoTiff_4.out +0 -0
  535. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Geotag.t +0 -0
  536. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Geotag_10.out +0 -0
  537. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Geotag_11.out +0 -0
  538. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Geotag_2.out +0 -0
  539. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Geotag_3.out +0 -0
  540. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Geotag_5.out +0 -0
  541. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Geotag_6.out +0 -0
  542. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Geotag_7.out +0 -0
  543. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Geotag_8.out +0 -0
  544. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Geotag_9.out +0 -0
  545. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/HTML.t +0 -0
  546. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/HTML_2.out +0 -0
  547. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/IPTC.t +0 -0
  548. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/IPTC_2.out +0 -0
  549. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/IPTC_4.out +0 -0
  550. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/IPTC_5.out +0 -0
  551. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/IPTC_6.out +0 -0
  552. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/IPTC_7.out +0 -0
  553. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/IPTC_8.out +0 -0
  554. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ISO.t +0 -0
  555. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ISO_2.out +0 -0
  556. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ITC.t +0 -0
  557. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ITC_2.out +0 -0
  558. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/InDesign.t +0 -0
  559. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/InDesign_2.out +0 -0
  560. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/InDesign_3.out +0 -0
  561. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/InDesign_4.out +0 -0
  562. data/bin/Image-ExifTool-10.49/t/JSON.t +30 -0
  563. data/bin/Image-ExifTool-10.49/t/JSON_2.out +19 -0
  564. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/JVC.t +0 -0
  565. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/JVC_2.out +0 -0
  566. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/JVC_3.out +0 -0
  567. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Jpeg2000.t +0 -0
  568. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Jpeg2000_2.out +0 -0
  569. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Jpeg2000_3.out +0 -0
  570. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Jpeg2000_4.out +0 -0
  571. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Kodak.t +0 -0
  572. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Kodak_2.out +0 -0
  573. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Kodak_3.out +0 -0
  574. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/KyoceraRaw.t +0 -0
  575. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/KyoceraRaw_2.out +0 -0
  576. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/LNK.t +0 -0
  577. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/LNK_2.out +0 -0
  578. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang.t +0 -0
  579. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_1.out +0 -0
  580. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_10.out +0 -0
  581. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_11.out +0 -0
  582. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_12.out +0 -0
  583. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_13.out +0 -0
  584. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_14.out +0 -0
  585. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_15.out +0 -0
  586. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_16.out +0 -0
  587. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_17.out +0 -0
  588. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_18.out +0 -0
  589. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_2.out +0 -0
  590. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_3.out +0 -0
  591. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_4.out +0 -0
  592. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_5.out +0 -0
  593. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_6.out +0 -0
  594. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_7.out +0 -0
  595. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_8.out +0 -0
  596. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lang_9.out +0 -0
  597. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lytro.t +0 -0
  598. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Lytro_2.out +0 -0
  599. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/M2TS.t +0 -0
  600. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/M2TS_2.out +0 -0
  601. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MIE.t +0 -0
  602. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MIE_2.out +0 -0
  603. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MIE_3.out +0 -0
  604. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MIE_5.out +0 -0
  605. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MIE_6.out +0 -0
  606. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MIFF.t +0 -0
  607. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MIFF_2.out +0 -0
  608. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MOI.t +0 -0
  609. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MOI_2.out +0 -0
  610. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MP3.t +0 -0
  611. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MP3_2.out +0 -0
  612. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MWG.t +0 -0
  613. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MWG_2.out +0 -0
  614. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MWG_3.out +0 -0
  615. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MWG_4.out +0 -0
  616. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MWG_5.out +0 -0
  617. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MWG_6.out +0 -0
  618. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MWG_7.out +0 -0
  619. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MXF.t +0 -0
  620. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/MXF_2.out +0 -0
  621. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Matroska.t +0 -0
  622. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Matroska_2.out +0 -0
  623. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Minolta.t +0 -0
  624. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Minolta_2.out +0 -0
  625. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Minolta_3.out +0 -0
  626. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Minolta_4.out +0 -0
  627. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Motorola.t +0 -0
  628. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Motorola_2.out +0 -0
  629. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Nikon.t +0 -0
  630. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Nikon_2.out +0 -0
  631. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Nikon_3.out +0 -0
  632. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Nikon_4.out +0 -0
  633. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Nikon_5.out +0 -0
  634. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Nikon_7.out +0 -0
  635. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Nikon_8.out +0 -0
  636. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Olympus.t +0 -0
  637. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Olympus_2.out +0 -0
  638. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Olympus_3.out +0 -0
  639. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Olympus_4.out +0 -0
  640. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Olympus_5.out +0 -0
  641. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Olympus_6.out +0 -0
  642. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Olympus_7.out +0 -0
  643. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Olympus_8.out +0 -0
  644. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/OpenEXR.t +0 -0
  645. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/OpenEXR_2.out +0 -0
  646. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Opus.t +0 -0
  647. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Opus_2.out +0 -0
  648. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF.t +0 -0
  649. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_10.out +0 -0
  650. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_11.out +0 -0
  651. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_12.out +0 -0
  652. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_14.out +0 -0
  653. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_15.out +0 -0
  654. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_16.out +0 -0
  655. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_17.out +0 -0
  656. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_18.out +0 -0
  657. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_19.out +0 -0
  658. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_2.out +0 -0
  659. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_20.out +0 -0
  660. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_22.out +0 -0
  661. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_4.out +0 -0
  662. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_5.out +0 -0
  663. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_6.out +0 -0
  664. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_7.out +0 -0
  665. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_8.out +0 -0
  666. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PDF_9.out +0 -0
  667. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PGF.t +0 -0
  668. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PGF_2.out +0 -0
  669. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PICT.t +0 -0
  670. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PICT_2.out +0 -0
  671. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PLIST.t +0 -0
  672. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PLIST_2.out +0 -0
  673. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PLIST_3.out +0 -0
  674. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PLUS.t +0 -0
  675. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PLUS_2.out +0 -0
  676. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PNG.t +0 -0
  677. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PNG_2.out +0 -0
  678. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PNG_3.out +0 -0
  679. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PNG_4.out +0 -0
  680. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PNG_5.out +0 -0
  681. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PNG_6.out +0 -0
  682. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PPM.t +0 -0
  683. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PPM_2.out +0 -0
  684. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PPM_3.out +0 -0
  685. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PSP.t +0 -0
  686. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PSP_2.out +0 -0
  687. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Palm.t +0 -0
  688. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Palm_2.out +0 -0
  689. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Panasonic.t +0 -0
  690. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Panasonic_2.out +0 -0
  691. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Panasonic_3.out +0 -0
  692. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Panasonic_4.out +0 -0
  693. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Panasonic_5.out +0 -0
  694. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Pentax.t +0 -0
  695. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Pentax_2.out +0 -0
  696. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Pentax_3.out +0 -0
  697. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Pentax_4.out +0 -0
  698. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PhaseOne.t +0 -0
  699. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PhaseOne_2.out +0 -0
  700. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PhaseOne_3.out +0 -0
  701. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PhotoCD.t +0 -0
  702. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PhotoCD_2.out +0 -0
  703. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PhotoMechanic.t +0 -0
  704. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PhotoMechanic_2.out +0 -0
  705. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PhotoMechanic_3.out +0 -0
  706. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Photoshop.t +0 -0
  707. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Photoshop_2.out +0 -0
  708. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Photoshop_3.out +0 -0
  709. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PostScript.t +0 -0
  710. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PostScript_2.out +0 -0
  711. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/PostScript_3.out +0 -0
  712. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/QuickTime.t +0 -0
  713. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/QuickTime_2.out +0 -0
  714. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/QuickTime_3.out +0 -0
  715. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/QuickTime_4.out +0 -0
  716. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/QuickTime_5.out +0 -0
  717. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/RIFF.t +0 -0
  718. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/RIFF_2.out +0 -0
  719. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/RIFF_3.out +0 -0
  720. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/RIFF_4.out +0 -0
  721. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/RTF.t +0 -0
  722. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/RTF_2.out +0 -0
  723. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Radiance.t +0 -0
  724. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Radiance_2.out +0 -0
  725. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Real.t +0 -0
  726. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Real_2.out +0 -0
  727. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Real_3.out +0 -0
  728. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Real_4.out +0 -0
  729. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Ricoh.t +0 -0
  730. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Ricoh_2.out +0 -0
  731. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Ricoh_3.out +0 -0
  732. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Ricoh_4.out +0 -0
  733. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sanyo.t +0 -0
  734. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sanyo_2.out +0 -0
  735. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sanyo_3.out +0 -0
  736. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sigma.t +0 -0
  737. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sigma_2.out +0 -0
  738. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sigma_3.out +0 -0
  739. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sigma_4.out +0 -0
  740. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sigma_5.out +0 -0
  741. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sony.t +0 -0
  742. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sony_2.out +0 -0
  743. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sony_3.out +0 -0
  744. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Sony_5.out +0 -0
  745. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/TestLib.pm +0 -0
  746. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Torrent.t +0 -0
  747. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Torrent_2.out +0 -0
  748. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Unknown.t +0 -0
  749. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Unknown_2.out +0 -0
  750. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Unknown_3.out +0 -0
  751. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/VCard.t +0 -0
  752. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/VCard_2.out +0 -0
  753. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/VCard_3.out +0 -0
  754. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Vorbis.t +0 -0
  755. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Vorbis_2.out +0 -0
  756. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer.t +0 -0
  757. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_10.out +0 -0
  758. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_11.out +0 -0
  759. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_13.out +0 -0
  760. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_14.out +0 -0
  761. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_15.out +0 -0
  762. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_16.out +0 -0
  763. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_17.out +0 -0
  764. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_18.out +0 -0
  765. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_19.out +0 -0
  766. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_2.out +0 -0
  767. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_22.out +0 -0
  768. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_24.out +0 -0
  769. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_25.out +0 -0
  770. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_26.out +0 -0
  771. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_27.out +0 -0
  772. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_28.out +0 -0
  773. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_29.out +0 -0
  774. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_30.out +0 -0
  775. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_31.out +0 -0
  776. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_32.out +0 -0
  777. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_33.out +0 -0
  778. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_34.out +0 -0
  779. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_35.out +0 -0
  780. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_36.out +0 -0
  781. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_37.out +0 -0
  782. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_38.out +0 -0
  783. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_39.out +0 -0
  784. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_4.out +0 -0
  785. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_40.out +0 -0
  786. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_41.out +0 -0
  787. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_42.out +0 -0
  788. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_43.out +0 -0
  789. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_44.out +0 -0
  790. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_45.out +0 -0
  791. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_46.out +0 -0
  792. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_47.out +0 -0
  793. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_48.out +0 -0
  794. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_50.out +0 -0
  795. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_51.out +0 -0
  796. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_52.out +0 -0
  797. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_53.out +0 -0
  798. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_54.out +0 -0
  799. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_55.out +0 -0
  800. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_56.out +0 -0
  801. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_58.out +0 -0
  802. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_6.out +0 -0
  803. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_7.out +0 -0
  804. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/Writer_9.out +0 -0
  805. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP.t +0 -0
  806. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_10.out +0 -0
  807. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_11.out +0 -0
  808. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_12.out +0 -0
  809. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_13.out +0 -0
  810. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_14.out +0 -0
  811. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_15.out +0 -0
  812. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_16.out +0 -0
  813. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_17.out +0 -0
  814. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_18.out +0 -0
  815. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_19.out +0 -0
  816. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_2.out +0 -0
  817. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_20.out +0 -0
  818. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_21.out +0 -0
  819. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_22.out +0 -0
  820. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_23.out +0 -0
  821. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_24.out +0 -0
  822. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_25.out +0 -0
  823. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_26.out +0 -0
  824. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_27.out +0 -0
  825. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_28.out +0 -0
  826. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_29.out +0 -0
  827. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_3.out +0 -0
  828. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_30.out +0 -0
  829. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_31.out +0 -0
  830. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_32.out +0 -0
  831. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_34.out +0 -0
  832. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_36.out +0 -0
  833. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_37.out +0 -0
  834. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_39.out +0 -0
  835. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_40.out +0 -0
  836. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_41.out +0 -0
  837. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_42.out +0 -0
  838. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_43.out +0 -0
  839. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_44.out +0 -0
  840. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_45.out +0 -0
  841. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_5.out +0 -0
  842. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_6.out +0 -0
  843. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_7.out +0 -0
  844. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_8.out +0 -0
  845. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/XMP_9.out +0 -0
  846. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ZIP.t +0 -0
  847. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ZIP_2.out +0 -0
  848. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ZIP_3.out +0 -0
  849. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ZIP_4.out +0 -0
  850. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ZIP_5.out +0 -0
  851. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ZIP_6.out +0 -0
  852. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/ZIP_7.out +0 -0
  853. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/AFCP.jpg +0 -0
  854. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/AIFF.aif +0 -0
  855. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/APE.ape +0 -0
  856. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/APE.mpc +0 -0
  857. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/ASF.wmv +0 -0
  858. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Apple.jpg +0 -0
  859. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Audible.aa +0 -0
  860. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/BMP.bmp +0 -0
  861. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/BPG.bpg +0 -0
  862. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/BigTIFF.btf +0 -0
  863. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Canon.jpg +0 -0
  864. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Canon1DmkIII.jpg +0 -0
  865. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/CanonRaw.cr2 +0 -0
  866. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/CanonRaw.crw +0 -0
  867. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/CanonVRD.dr4 +0 -0
  868. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/CanonVRD.vrd +0 -0
  869. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/CaptureOne.eip +0 -0
  870. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Casio.jpg +0 -0
  871. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Casio2.jpg +0 -0
  872. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/CasioQVCI.jpg +0 -0
  873. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/DICOM.dcm +0 -0
  874. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/DNG.dng +0 -0
  875. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/DPX.dpx +0 -0
  876. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/DV.dv +0 -0
  877. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/DjVu.djvu +0 -0
  878. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/EXE.a +0 -0
  879. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/EXE.dylib +0 -0
  880. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/EXE.elf +0 -0
  881. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/EXE.exe +0 -0
  882. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/EXE.macho +0 -0
  883. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/EXE.so +0 -0
  884. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/ExifTool.jpg +0 -0
  885. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/ExifTool.tif +0 -0
  886. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/ExtendedXMP.jpg +0 -0
  887. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/FLAC.flac +0 -0
  888. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/FLAC.ogg +0 -0
  889. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/FLIF.flif +0 -0
  890. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/FLIR.fpf +0 -0
  891. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/FLIR.jpg +0 -0
  892. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Flash.flv +0 -0
  893. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Flash.swf +0 -0
  894. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/FlashPix.ppt +0 -0
  895. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Font.afm +0 -0
  896. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Font.dfont +0 -0
  897. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Font.pfa +0 -0
  898. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Font.pfb +0 -0
  899. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Font.pfm +0 -0
  900. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Font.ttf +0 -0
  901. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/FotoStation.jpg +0 -0
  902. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/FujiFilm.jpg +0 -0
  903. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/FujiFilm.raf +0 -0
  904. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/GE.jpg +0 -0
  905. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/GIF.gif +0 -0
  906. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/GIMP.xcf +0 -0
  907. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/GPS.jpg +0 -0
  908. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/GeoTiff.tif +0 -0
  909. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Geotag.gpx +0 -0
  910. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Geotag.igc +0 -0
  911. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Geotag.kml +0 -0
  912. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Geotag.xml +0 -0
  913. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/HTML.html +0 -0
  914. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/ICC_Profile.icc +0 -0
  915. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/IPTC.jpg +0 -0
  916. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/ISO.iso +0 -0
  917. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/ITC.itc +0 -0
  918. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/InDesign.indd +0 -0
  919. data/bin/Image-ExifTool-10.49/t/images/JSON.json +19 -0
  920. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/JVC.jpg +0 -0
  921. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/JVC2.jpg +0 -0
  922. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Jpeg2000.j2c +0 -0
  923. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Jpeg2000.jp2 +0 -0
  924. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Kodak.jpg +0 -0
  925. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/KyoceraRaw.raw +0 -0
  926. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/LNK.lnk +0 -0
  927. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Lytro.lfp +0 -0
  928. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/M2TS.mts +0 -0
  929. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/MIE.mie +0 -0
  930. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/MIFF.miff +0 -0
  931. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/MOI.moi +0 -0
  932. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/MP3.mp3 +0 -0
  933. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/MWG.jpg +0 -0
  934. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/MXF.mxf +0 -0
  935. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Matroska.mkv +0 -0
  936. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Minolta.jpg +0 -0
  937. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Minolta.mrw +0 -0
  938. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Motorola.jpg +0 -0
  939. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Nikon.jpg +0 -0
  940. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Nikon.nef +0 -0
  941. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/NikonD2Hs.jpg +0 -0
  942. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/NikonD70.jpg +0 -0
  943. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/OOXML.docx +0 -0
  944. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Olympus.dss +0 -0
  945. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Olympus.jpg +0 -0
  946. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Olympus2.jpg +0 -0
  947. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/OlympusE1.jpg +0 -0
  948. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/OpenDoc.ods +0 -0
  949. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/OpenEXR.exr +0 -0
  950. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Opus.opus +0 -0
  951. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PDF.pdf +0 -0
  952. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PDF2.pdf +0 -0
  953. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PGF.pgf +0 -0
  954. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PICT.pict +0 -0
  955. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PLIST-bin.plist +0 -0
  956. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PLIST-xml.plist +0 -0
  957. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PLUS.xmp +0 -0
  958. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PNG.png +0 -0
  959. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PPM.ppm +0 -0
  960. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PSP.psp +0 -0
  961. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Palm.mobi +0 -0
  962. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Panasonic.jpg +0 -0
  963. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Panasonic.rw2 +0 -0
  964. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Pentax.avi +0 -0
  965. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Pentax.jpg +0 -0
  966. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PhaseOne.iiq +0 -0
  967. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PhotoCD.pcd +0 -0
  968. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PhotoMechanic.jpg +0 -0
  969. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Photoshop.psd +0 -0
  970. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/PostScript.eps +0 -0
  971. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/QuickTime.m4a +0 -0
  972. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/QuickTime.mov +0 -0
  973. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/RIFF.avi +0 -0
  974. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/RIFF.wav +0 -0
  975. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/RIFF.webp +0 -0
  976. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/RTF.rtf +0 -0
  977. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Radiance.hdr +0 -0
  978. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Real.ra +0 -0
  979. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Real.ram +0 -0
  980. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Real.rm +0 -0
  981. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Ricoh.jpg +0 -0
  982. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Ricoh2.jpg +0 -0
  983. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Sanyo.jpg +0 -0
  984. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Sigma.jpg +0 -0
  985. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Sigma.x3f +0 -0
  986. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/SigmaDP2.x3f +0 -0
  987. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Sony.jpg +0 -0
  988. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Sony.pmp +0 -0
  989. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Torrent.torrent +0 -0
  990. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Unknown.jpg +0 -0
  991. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/VCard.ics +0 -0
  992. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/VCard.vcf +0 -0
  993. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Vorbis.ogg +0 -0
  994. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/Writer.jpg +0 -0
  995. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/XMP.inx +0 -0
  996. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/XMP.jpg +0 -0
  997. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/XMP.svg +0 -0
  998. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/XMP.xml +0 -0
  999. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/XMP.xmp +0 -0
  1000. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/XMP2.xmp +0 -0
  1001. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/XMP3.xmp +0 -0
  1002. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/XMP4.xmp +0 -0
  1003. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/XMP5.xmp +0 -0
  1004. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/XMP6.xmp +0 -0
  1005. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/ZIP.gz +0 -0
  1006. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/ZIP.zip +0 -0
  1007. data/bin/{Image-ExifTool-10.43 → Image-ExifTool-10.49}/t/images/iWork.numbers +0 -0
  1008. data/lib/exiftool_vendored/version.rb +1 -1
  1009. metadata +1008 -1001
  1010. data/bin/Image-ExifTool-10.43/Changes +0 -7737
  1011. data/bin/Image-ExifTool-10.43/MANIFEST +0 -1002
  1012. data/bin/Image-ExifTool-10.43/META.json +0 -51
  1013. data/bin/Image-ExifTool-10.43/META.yml +0 -31
  1014. data/bin/Image-ExifTool-10.43/README +0 -241
  1015. data/bin/Image-ExifTool-10.43/config_files/convert_regions.config +0 -89
  1016. data/bin/Image-ExifTool-10.43/config_files/example.config +0 -344
  1017. data/bin/Image-ExifTool-10.43/config_files/photoshop_paths.config +0 -160
  1018. data/bin/Image-ExifTool-10.43/config_files/time_zone.config +0 -76
  1019. data/bin/Image-ExifTool-10.43/exiftool +0 -6494
  1020. data/bin/Image-ExifTool-10.43/html/ExifTool.html +0 -2126
  1021. data/bin/Image-ExifTool-10.43/html/TagNames/AFCP.html +0 -53
  1022. data/bin/Image-ExifTool-10.43/html/TagNames/AIFF.html +0 -146
  1023. data/bin/Image-ExifTool-10.43/html/TagNames/APE.html +0 -149
  1024. data/bin/Image-ExifTool-10.43/html/TagNames/APP12.html +0 -188
  1025. data/bin/Image-ExifTool-10.43/html/TagNames/ASF.html +0 -1066
  1026. data/bin/Image-ExifTool-10.43/html/TagNames/Apple.html +0 -86
  1027. data/bin/Image-ExifTool-10.43/html/TagNames/Audible.html +0 -177
  1028. data/bin/Image-ExifTool-10.43/html/TagNames/BMP.html +0 -233
  1029. data/bin/Image-ExifTool-10.43/html/TagNames/BPG.html +0 -118
  1030. data/bin/Image-ExifTool-10.43/html/TagNames/Canon.html +0 -9741
  1031. data/bin/Image-ExifTool-10.43/html/TagNames/CanonRaw.html +0 -561
  1032. data/bin/Image-ExifTool-10.43/html/TagNames/CanonVRD.html +0 -2020
  1033. data/bin/Image-ExifTool-10.43/html/TagNames/Casio.html +0 -1606
  1034. data/bin/Image-ExifTool-10.43/html/TagNames/Composite.html +0 -745
  1035. data/bin/Image-ExifTool-10.43/html/TagNames/DICOM.html +0 -15762
  1036. data/bin/Image-ExifTool-10.43/html/TagNames/DNG.html +0 -295
  1037. data/bin/Image-ExifTool-10.43/html/TagNames/DPX.html +0 -229
  1038. data/bin/Image-ExifTool-10.43/html/TagNames/DV.html +0 -75
  1039. data/bin/Image-ExifTool-10.43/html/TagNames/DjVu.html +0 -313
  1040. data/bin/Image-ExifTool-10.43/html/TagNames/EXE.html +0 -741
  1041. data/bin/Image-ExifTool-10.43/html/TagNames/EXIF.html +0 -3484
  1042. data/bin/Image-ExifTool-10.43/html/TagNames/Extra.html +0 -482
  1043. data/bin/Image-ExifTool-10.43/html/TagNames/FLAC.html +0 -183
  1044. data/bin/Image-ExifTool-10.43/html/TagNames/FLIF.html +0 -84
  1045. data/bin/Image-ExifTool-10.43/html/TagNames/FLIR.html +0 -1340
  1046. data/bin/Image-ExifTool-10.43/html/TagNames/Flash.html +0 -419
  1047. data/bin/Image-ExifTool-10.43/html/TagNames/FlashPix.html +0 -1475
  1048. data/bin/Image-ExifTool-10.43/html/TagNames/Font.html +0 -485
  1049. data/bin/Image-ExifTool-10.43/html/TagNames/FotoStation.html +0 -103
  1050. data/bin/Image-ExifTool-10.43/html/TagNames/FujiFilm.html +0 -867
  1051. data/bin/Image-ExifTool-10.43/html/TagNames/GIF.html +0 -116
  1052. data/bin/Image-ExifTool-10.43/html/TagNames/GIMP.html +0 -140
  1053. data/bin/Image-ExifTool-10.43/html/TagNames/GeoTiff.html +0 -2298
  1054. data/bin/Image-ExifTool-10.43/html/TagNames/H264.html +0 -393
  1055. data/bin/Image-ExifTool-10.43/html/TagNames/HP.html +0 -155
  1056. data/bin/Image-ExifTool-10.43/html/TagNames/HTML.html +0 -666
  1057. data/bin/Image-ExifTool-10.43/html/TagNames/ICC_Profile.html +0 -711
  1058. data/bin/Image-ExifTool-10.43/html/TagNames/ID3.html +0 -1593
  1059. data/bin/Image-ExifTool-10.43/html/TagNames/IPTC.html +0 -903
  1060. data/bin/Image-ExifTool-10.43/html/TagNames/ISO.html +0 -159
  1061. data/bin/Image-ExifTool-10.43/html/TagNames/ITC.html +0 -90
  1062. data/bin/Image-ExifTool-10.43/html/TagNames/JFIF.html +0 -62
  1063. data/bin/Image-ExifTool-10.43/html/TagNames/JPEG.html +0 -602
  1064. data/bin/Image-ExifTool-10.43/html/TagNames/JVC.html +0 -56
  1065. data/bin/Image-ExifTool-10.43/html/TagNames/Jpeg2000.html +0 -466
  1066. data/bin/Image-ExifTool-10.43/html/TagNames/Kodak.html +0 -1891
  1067. data/bin/Image-ExifTool-10.43/html/TagNames/KyoceraRaw.html +0 -92
  1068. data/bin/Image-ExifTool-10.43/html/TagNames/LNK.html +0 -478
  1069. data/bin/Image-ExifTool-10.43/html/TagNames/Leaf.html +0 -871
  1070. data/bin/Image-ExifTool-10.43/html/TagNames/Lytro.html +0 -122
  1071. data/bin/Image-ExifTool-10.43/html/TagNames/M2TS.html +0 -133
  1072. data/bin/Image-ExifTool-10.43/html/TagNames/MIFF.html +0 -196
  1073. data/bin/Image-ExifTool-10.43/html/TagNames/MNG.html +0 -847
  1074. data/bin/Image-ExifTool-10.43/html/TagNames/MOI.html +0 -60
  1075. data/bin/Image-ExifTool-10.43/html/TagNames/MPC.html +0 -97
  1076. data/bin/Image-ExifTool-10.43/html/TagNames/MPEG.html +0 -249
  1077. data/bin/Image-ExifTool-10.43/html/TagNames/MPF.html +0 -199
  1078. data/bin/Image-ExifTool-10.43/html/TagNames/MWG.html +0 -584
  1079. data/bin/Image-ExifTool-10.43/html/TagNames/MXF.html +0 -6673
  1080. data/bin/Image-ExifTool-10.43/html/TagNames/Matroska.html +0 -1114
  1081. data/bin/Image-ExifTool-10.43/html/TagNames/Microsoft.html +0 -2126
  1082. data/bin/Image-ExifTool-10.43/html/TagNames/Minolta.html +0 -2634
  1083. data/bin/Image-ExifTool-10.43/html/TagNames/MinoltaRaw.html +0 -326
  1084. data/bin/Image-ExifTool-10.43/html/TagNames/Nikon.html +0 -6016
  1085. data/bin/Image-ExifTool-10.43/html/TagNames/OOXML.html +0 -280
  1086. data/bin/Image-ExifTool-10.43/html/TagNames/Olympus.html +0 -3655
  1087. data/bin/Image-ExifTool-10.43/html/TagNames/OpenEXR.html +0 -222
  1088. data/bin/Image-ExifTool-10.43/html/TagNames/Opus.html +0 -62
  1089. data/bin/Image-ExifTool-10.43/html/TagNames/PDF.html +0 -745
  1090. data/bin/Image-ExifTool-10.43/html/TagNames/PGF.html +0 -80
  1091. data/bin/Image-ExifTool-10.43/html/TagNames/PICT.html +0 -753
  1092. data/bin/Image-ExifTool-10.43/html/TagNames/PLIST.html +0 -86
  1093. data/bin/Image-ExifTool-10.43/html/TagNames/PNG.html +0 -578
  1094. data/bin/Image-ExifTool-10.43/html/TagNames/PSP.html +0 -160
  1095. data/bin/Image-ExifTool-10.43/html/TagNames/Palm.html +0 -388
  1096. data/bin/Image-ExifTool-10.43/html/TagNames/Panasonic.html +0 -1701
  1097. data/bin/Image-ExifTool-10.43/html/TagNames/PanasonicRaw.html +0 -471
  1098. data/bin/Image-ExifTool-10.43/html/TagNames/Pentax.html +0 -4809
  1099. data/bin/Image-ExifTool-10.43/html/TagNames/PhaseOne.html +0 -263
  1100. data/bin/Image-ExifTool-10.43/html/TagNames/PhotoCD.html +0 -402
  1101. data/bin/Image-ExifTool-10.43/html/TagNames/Photoshop.html +0 -739
  1102. data/bin/Image-ExifTool-10.43/html/TagNames/PostScript.html +0 -125
  1103. data/bin/Image-ExifTool-10.43/html/TagNames/PrintIM.html +0 -31
  1104. data/bin/Image-ExifTool-10.43/html/TagNames/Qualcomm.html +0 -4778
  1105. data/bin/Image-ExifTool-10.43/html/TagNames/QuickTime.html +0 -6231
  1106. data/bin/Image-ExifTool-10.43/html/TagNames/RIFF.html +0 -1382
  1107. data/bin/Image-ExifTool-10.43/html/TagNames/RSRC.html +0 -74
  1108. data/bin/Image-ExifTool-10.43/html/TagNames/RTF.html +0 -150
  1109. data/bin/Image-ExifTool-10.43/html/TagNames/Radiance.html +0 -87
  1110. data/bin/Image-ExifTool-10.43/html/TagNames/Rawzor.html +0 -45
  1111. data/bin/Image-ExifTool-10.43/html/TagNames/Real.html +0 -780
  1112. data/bin/Image-ExifTool-10.43/html/TagNames/Reconyx.html +0 -132
  1113. data/bin/Image-ExifTool-10.43/html/TagNames/Ricoh.html +0 -805
  1114. data/bin/Image-ExifTool-10.43/html/TagNames/Samsung.html +0 -682
  1115. data/bin/Image-ExifTool-10.43/html/TagNames/Sanyo.html +0 -366
  1116. data/bin/Image-ExifTool-10.43/html/TagNames/Scalado.html +0 -45
  1117. data/bin/Image-ExifTool-10.43/html/TagNames/Shortcuts.html +0 -280
  1118. data/bin/Image-ExifTool-10.43/html/TagNames/SigmaRaw.html +0 -438
  1119. data/bin/Image-ExifTool-10.43/html/TagNames/Sony.html +0 -10307
  1120. data/bin/Image-ExifTool-10.43/html/TagNames/Stim.html +0 -200
  1121. data/bin/Image-ExifTool-10.43/html/TagNames/Theora.html +0 -102
  1122. data/bin/Image-ExifTool-10.43/html/TagNames/Torrent.html +0 -187
  1123. data/bin/Image-ExifTool-10.43/html/TagNames/VCard.html +0 -433
  1124. data/bin/Image-ExifTool-10.43/html/TagNames/Vorbis.html +0 -243
  1125. data/bin/Image-ExifTool-10.43/html/TagNames/XMP.html +0 -10158
  1126. data/bin/Image-ExifTool-10.43/html/TagNames/ZIP.html +0 -205
  1127. data/bin/Image-ExifTool-10.43/html/TagNames/iWork.html +0 -49
  1128. data/bin/Image-ExifTool-10.43/html/TagNames/index.html +0 -218
  1129. data/bin/Image-ExifTool-10.43/html/ancient_history.html +0 -8365
  1130. data/bin/Image-ExifTool-10.43/html/config.html +0 -356
  1131. data/bin/Image-ExifTool-10.43/html/data_members.html +0 -288
  1132. data/bin/Image-ExifTool-10.43/html/exiftool_pod.html +0 -1873
  1133. data/bin/Image-ExifTool-10.43/html/faq.html +0 -1593
  1134. data/bin/Image-ExifTool-10.43/html/filename.html +0 -353
  1135. data/bin/Image-ExifTool-10.43/html/history.html +0 -366
  1136. data/bin/Image-ExifTool-10.43/html/index.html +0 -1365
  1137. data/bin/Image-ExifTool-10.43/html/install.html +0 -261
  1138. data/bin/Image-ExifTool-10.43/html/standards.html +0 -288
  1139. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool.pm +0 -7809
  1140. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool.pod +0 -2575
  1141. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/BuildTagLookup.pm +0 -2530
  1142. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Canon.pm +0 -8929
  1143. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Charset.pm +0 -423
  1144. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Exif.pm +0 -6116
  1145. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/FlashPix.pm +0 -1960
  1146. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/FujiFilm.pm +0 -1264
  1147. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Import.pm +0 -329
  1148. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/JPEGDigest.pm +0 -2616
  1149. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Minolta.pm +0 -2996
  1150. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Nikon.pm +0 -8173
  1151. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/PDF.pm +0 -2377
  1152. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/PLIST.pm +0 -448
  1153. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/PNG.pm +0 -1371
  1154. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Panasonic.pm +0 -2378
  1155. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Pentax.pm +0 -6136
  1156. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Photoshop.pm +0 -952
  1157. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/QuickTime.pm +0 -6708
  1158. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/README +0 -1010
  1159. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Sony.pm +0 -9806
  1160. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/TagLookup.pm +0 -9517
  1161. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/TagNames.pod +0 -30717
  1162. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Validate.pm +0 -306
  1163. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/WriteXMP.pl +0 -1381
  1164. data/bin/Image-ExifTool-10.43/lib/Image/ExifTool/Writer.pl +0 -6352
  1165. data/bin/Image-ExifTool-10.43/perl-Image-ExifTool.spec +0 -113
  1166. data/bin/Image-ExifTool-10.43/t/CanonRaw_6.out +0 -233
  1167. data/bin/Image-ExifTool-10.43/t/ExifTool_31.out +0 -5
@@ -0,0 +1,2378 @@
1
+ #------------------------------------------------------------------------------
2
+ # File: PDF.pm
3
+ #
4
+ # Description: Read PDF meta information
5
+ #
6
+ # Revisions: 07/11/2005 - P. Harvey Created
7
+ # 07/25/2005 - P. Harvey Add support for encrypted documents
8
+ #
9
+ # References: 1) http://www.adobe.com/devnet/pdf/pdf_reference.html
10
+ # 2) http://search.cpan.org/dist/Crypt-RC4/
11
+ # 3) http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf
12
+ # 4) http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/adobe_supplement_iso32000.pdf
13
+ # 5) http://tools.ietf.org/search/rfc3454
14
+ # 6) http://www.armware.dk/RFC/rfc/rfc4013.html
15
+ #------------------------------------------------------------------------------
16
+
17
+ package Image::ExifTool::PDF;
18
+
19
+ use strict;
20
+ use vars qw($VERSION $AUTOLOAD $lastFetched);
21
+ use Image::ExifTool qw(:DataAccess :Utils);
22
+ require Exporter;
23
+
24
+ $VERSION = '1.43';
25
+
26
+ sub FetchObject($$$$);
27
+ sub ExtractObject($$;$$);
28
+ sub ReadToNested($;$);
29
+ sub ProcessDict($$$$;$$);
30
+ sub ProcessAcroForm($$$$;$$);
31
+ sub ExpandArray($);
32
+ sub ReadPDFValue($);
33
+ sub CheckPDF($$$);
34
+
35
+ # $lastFetched - last fetched object reference (used for decryption)
36
+ # (undefined if fetched object was already decrypted, eg. object from stream)
37
+
38
+ my $cryptInfo; # encryption object reference (plus additional information)
39
+ my $cryptString; # flag that strings are encrypted
40
+ my $cryptStream; # flag that streams are encrypted
41
+ my $lastOffset; # last fetched object offset
42
+ my %streamObjs; # hash of stream objects
43
+ my %fetched; # dicts fetched in verbose mode (to avoid cyclical recursion)
44
+ my $pdfVer; # version of PDF file being processed
45
+
46
+ # filters supported in DecodeStream()
47
+ my %supportedFilter = (
48
+ '/FlateDecode' => 1,
49
+ '/Crypt' => 1,
50
+ '/Identity' => 1, # (not filtered)
51
+ '/DCTDecode' => 1, # (JPEG image - not filtered)
52
+ '/JPXDecode' => 1, # (Jpeg2000 image - not filtered)
53
+ '/LZWDecode' => 1, # (usually a bitmapped image)
54
+ '/ASCIIHexDecode' => 1,
55
+ '/ASCII85Decode' => 1,
56
+ # other standard filters that we currently don't support
57
+ #'/JBIG2Decode' => 0, # (JBIG2 image format not supported)
58
+ #'/CCITTFaxDecode' => 0,
59
+ #'/RunLengthDecode' => 0,
60
+ );
61
+
62
+ # tags in main PDF directories
63
+ %Image::ExifTool::PDF::Main = (
64
+ GROUPS => { 2 => 'Document' },
65
+ VARS => { CAPTURE => ['Main','Prev'] },
66
+ Info => {
67
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Info' },
68
+ # Adobe Acrobat 10.1.5 will create a duplicate Info dictionary with
69
+ # a different object number when metadata is edited. This flag
70
+ # is part of a patch to ignore this duplicate information (unless
71
+ # the IgnoreMinorErrors option is used)
72
+ IgnoreDuplicates => 1,
73
+ },
74
+ Root => {
75
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Root' },
76
+ },
77
+ Encrypt => {
78
+ NoProcess => 1, # don't process normally (processed in advance)
79
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Encrypt' },
80
+ },
81
+ _linearized => {
82
+ Name => 'Linearized',
83
+ Notes => 'flag set if document is linearized for fast web display; not a real Tag ID',
84
+ PrintConv => { 'true' => 'Yes', 'false' => 'No' },
85
+ },
86
+ );
87
+
88
+ # tags in PDF Info dictionary
89
+ %Image::ExifTool::PDF::Info = (
90
+ GROUPS => { 2 => 'Document' },
91
+ VARS => { CAPTURE => ['Info'] },
92
+ EXTRACT_UNKNOWN => 1, # extract all unknown tags in this directory
93
+ WRITE_PROC => \&Image::ExifTool::DummyWriteProc,
94
+ CHECK_PROC => \&CheckPDF,
95
+ WRITABLE => 'string',
96
+ # set PRIORITY to 0 so most recent Info dictionary takes precedence
97
+ # (Acrobat Pro bug? doesn't use same object/generation number for
98
+ # new Info dictionary when doing incrmental update)
99
+ PRIORITY => 0,
100
+ NOTES => q{
101
+ As well as the tags listed below, the PDF specification allows for
102
+ user-defined tags to exist in the Info dictionary. These tags, which should
103
+ have corresponding XMP-pdfx entries in the XMP of the PDF XML Metadata
104
+ object, are also extracted by ExifTool.
105
+
106
+ B<Writable> specifies the value format, and may be C<string>, C<date>,
107
+ C<integer>, C<real>, C<boolean> or C<name> for PDF tags.
108
+ },
109
+ Title => { },
110
+ Author => { Groups => { 2 => 'Author' } },
111
+ Subject => { },
112
+ Keywords => { List => 'string' }, # this is a string list
113
+ Creator => { },
114
+ Producer => { },
115
+ CreationDate => {
116
+ Name => 'CreateDate',
117
+ Writable => 'date',
118
+ Groups => { 2 => 'Time' },
119
+ Shift => 'Time',
120
+ PrintConv => '$self->ConvertDateTime($val)',
121
+ PrintConvInv => '$self->InverseDateTime($val)',
122
+ },
123
+ ModDate => {
124
+ Name => 'ModifyDate',
125
+ Writable => 'date',
126
+ Groups => { 2 => 'Time' },
127
+ Shift => 'Time',
128
+ PrintConv => '$self->ConvertDateTime($val)',
129
+ PrintConvInv => '$self->InverseDateTime($val)',
130
+ },
131
+ Trapped => {
132
+ Protected => 1,
133
+ # remove leading '/' from '/True' or '/False'
134
+ ValueConv => '$val=~s{^/}{}; $val',
135
+ ValueConvInv => '"/$val"',
136
+ },
137
+ 'AAPL:Keywords' => { #PH
138
+ Name => 'AppleKeywords',
139
+ List => 'array', # this is an array of values
140
+ Notes => q{
141
+ keywords written by Apple utilities, although they seem to use PDF:Keywords
142
+ when reading
143
+ },
144
+ },
145
+ );
146
+
147
+ # tags in the PDF Root document catalog
148
+ %Image::ExifTool::PDF::Root = (
149
+ GROUPS => { 2 => 'Document' },
150
+ # note: can't capture previous versions of Root since they are not parsed
151
+ VARS => { CAPTURE => ['Root'] },
152
+ NOTES => 'This is the PDF document catalog.',
153
+ MarkInfo => {
154
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::MarkInfo' },
155
+ },
156
+ Metadata => {
157
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Metadata' },
158
+ },
159
+ Pages => {
160
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Pages' },
161
+ },
162
+ Perms => {
163
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Perms' },
164
+ },
165
+ AcroForm => {
166
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::AcroForm' },
167
+ },
168
+ Lang => 'Language',
169
+ PageLayout => { },
170
+ PageMode => { },
171
+ Version => 'PDFVersion',
172
+ );
173
+
174
+ # tags extracted from the PDF Encrypt dictionary
175
+ %Image::ExifTool::PDF::Encrypt = (
176
+ GROUPS => { 2 => 'Document' },
177
+ NOTES => 'Tags extracted from the document Encrypt dictionary.',
178
+ Filter => {
179
+ Name => 'Encryption',
180
+ Notes => q{
181
+ extracted value is actually a combination of the Filter, SubFilter, V, R and
182
+ Length information from the Encrypt dictionary
183
+ },
184
+ },
185
+ P => {
186
+ Name => 'UserAccess',
187
+ ValueConv => '$val & 0x0f3c', # ignore reserved bits
188
+ PrintConvColumns => 2,
189
+ PrintConv => { BITMASK => {
190
+ 2 => 'Print',
191
+ 3 => 'Modify',
192
+ 4 => 'Copy',
193
+ 5 => 'Annotate',
194
+ 8 => 'Fill forms',
195
+ 9 => 'Extract',
196
+ 10 => 'Assemble',
197
+ 11 => 'Print high-res',
198
+ }},
199
+ },
200
+ );
201
+
202
+ # tags in PDF Pages dictionary
203
+ %Image::ExifTool::PDF::Pages = (
204
+ GROUPS => { 2 => 'Document' },
205
+ Count => 'PageCount',
206
+ Kids => {
207
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Kids' },
208
+ },
209
+ );
210
+
211
+ # tags in PDF Perms dictionary
212
+ %Image::ExifTool::PDF::Perms = (
213
+ NOTES => 'Additional document permissions imposed by digital signatures.',
214
+ DocMDP => {
215
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Signature' },
216
+ },
217
+ FieldMDP => {
218
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Signature' },
219
+ },
220
+ UR3 => {
221
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Signature' },
222
+ },
223
+ );
224
+
225
+ # tags in PDF Perms dictionary
226
+ %Image::ExifTool::PDF::AcroForm = (
227
+ PROCESS_PROC => \&ProcessAcroForm,
228
+ _has_xfa => {
229
+ Name => 'HasXFA',
230
+ Notes => q{
231
+ this tag is defined if a document contains form fields, and is true if it
232
+ uses XML Forms Architecture; not a real Tag ID
233
+ },
234
+ PrintConv => { 'true' => 'Yes', 'false' => 'No' },
235
+ },
236
+ );
237
+
238
+ # tags in PDF Kids dictionary
239
+ %Image::ExifTool::PDF::Kids = (
240
+ Metadata => {
241
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Metadata' },
242
+ },
243
+ PieceInfo => {
244
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::PieceInfo' },
245
+ },
246
+ Resources => {
247
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Resources' },
248
+ },
249
+ Kids => {
250
+ Condition => '$self->Options("ExtractEmbedded")',
251
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Kids' },
252
+ },
253
+ );
254
+
255
+ # tags in PDF Resources dictionary
256
+ %Image::ExifTool::PDF::Resources = (
257
+ ColorSpace => {
258
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::ColorSpace' },
259
+ },
260
+ XObject => {
261
+ Condition => '$self->Options("ExtractEmbedded")',
262
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::XObject' },
263
+ },
264
+ Properties => {
265
+ Condition => '$self->Options("ExtractEmbedded")',
266
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Properties' },
267
+ },
268
+ );
269
+
270
+ # tags in PDF ColorSpace dictionary
271
+ %Image::ExifTool::PDF::ColorSpace = (
272
+ DefaultRGB => {
273
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::DefaultRGB' },
274
+ },
275
+ Cs1 => {
276
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Cs1' },
277
+ },
278
+ );
279
+
280
+ # tags in PDF DefaultRGB dictionary
281
+ %Image::ExifTool::PDF::DefaultRGB = (
282
+ ICCBased => {
283
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::ICCBased' },
284
+ },
285
+ );
286
+
287
+ # tags in PDF Cs1 dictionary
288
+ %Image::ExifTool::PDF::Cs1 = (
289
+ _stream => {
290
+ SubDirectory => { TagTable => 'Image::ExifTool::ICC_Profile::Main' },
291
+ },
292
+ );
293
+
294
+ # tags in PDF ICCBased dictionary
295
+ %Image::ExifTool::PDF::ICCBased = (
296
+ _stream => {
297
+ SubDirectory => { TagTable => 'Image::ExifTool::ICC_Profile::Main' },
298
+ },
299
+ );
300
+
301
+ # tags in PDF XObject dictionary (parsed only if ExtractEmbedded is enabled)
302
+ %Image::ExifTool::PDF::XObject = (
303
+ EXTRACT_UNKNOWN => 0, # extract known but numbered tags (Im1, Im2, etc)
304
+ Im => {
305
+ Notes => q{
306
+ the ExtractEmbedded option enables information to be extracted from these
307
+ embedded images
308
+ },
309
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Im' },
310
+ },
311
+ );
312
+
313
+ # tags in PDF Im# dictionary
314
+ %Image::ExifTool::PDF::Im = (
315
+ NOTES => q{
316
+ Information extracted from embedded images with the ExtractEmbedded option.
317
+ The EmbeddedImage and its metadata are extracted only for JPEG and Jpeg2000
318
+ image formats.
319
+ },
320
+ Width => 'EmbeddedImageWidth',
321
+ Height => 'EmbeddedImageHeight',
322
+ Filter => { Name => 'EmbeddedImageFilter', List => 1 },
323
+ ColorSpace => {
324
+ Name => 'EmbeddedImageColorSpace',
325
+ List => 1,
326
+ RawConv => 'ref $val ? undef : $val', # (ignore color space data)
327
+ },
328
+ Image_stream => {
329
+ Name => 'EmbeddedImage',
330
+ Groups => { 2 => 'Preview' },
331
+ Binary => 1,
332
+ },
333
+ );
334
+
335
+ # tags in PDF Properties dictionary
336
+ %Image::ExifTool::PDF::Properties = (
337
+ EXTRACT_UNKNOWN => 0, # extract known but numbered tags (MC0, MC1, etc)
338
+ MC => {
339
+ Notes => q{
340
+ the ExtractEmbedded option enables information to be extracted from these
341
+ embedded metadata dictionaries
342
+ },
343
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::MC' },
344
+ }
345
+ );
346
+
347
+ # tags in PDF MC# dictionary
348
+ %Image::ExifTool::PDF::MC = (
349
+ Metadata => {
350
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Metadata' },
351
+ }
352
+ );
353
+
354
+ # tags in PDF PieceInfo dictionary
355
+ %Image::ExifTool::PDF::PieceInfo = (
356
+ AdobePhotoshop => {
357
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::AdobePhotoshop' },
358
+ },
359
+ Illustrator => {
360
+ # assume this is an illustrator file if it contains this directory
361
+ # and doesn't have a ".PDF" extension
362
+ Condition => q{
363
+ $self->OverrideFileType("AI") unless $$self{FILE_EXT} and $$self{FILE_EXT} eq 'PDF';
364
+ return 1;
365
+ },
366
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Illustrator' },
367
+ },
368
+ );
369
+
370
+ # tags in PDF AdobePhotoshop dictionary
371
+ %Image::ExifTool::PDF::AdobePhotoshop = (
372
+ Private => {
373
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Private' },
374
+ },
375
+ );
376
+
377
+ # tags in PDF Illustrator dictionary
378
+ %Image::ExifTool::PDF::Illustrator = (
379
+ Private => {
380
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::AIPrivate' },
381
+ },
382
+ );
383
+
384
+ # tags in PDF Private dictionary
385
+ %Image::ExifTool::PDF::Private = (
386
+ ImageResources => {
387
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::ImageResources' },
388
+ },
389
+ );
390
+
391
+ # tags in PDF AI Private dictionary
392
+ %Image::ExifTool::PDF::AIPrivate = (
393
+ GROUPS => { 2 => 'Document' },
394
+ EXTRACT_UNKNOWN => 0, # extract known but numbered tags
395
+ AIMetaData => {
396
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::AIMetaData' },
397
+ },
398
+ AIPrivateData => {
399
+ Notes => q{
400
+ the ExtractEmbedded option enables information to be extracted from embedded
401
+ PostScript documents in the AIPrivateData# and AIPDFPrivateData# streams
402
+ },
403
+ JoinStreams => 1, # join streams from numbered tags and process as one
404
+ SubDirectory => { TagTable => 'Image::ExifTool::PostScript::Main' },
405
+ },
406
+ AIPDFPrivateData => {
407
+ JoinStreams => 1, # join streams from numbered tags and process as one
408
+ SubDirectory => { TagTable => 'Image::ExifTool::PostScript::Main' },
409
+ },
410
+ RoundTripVersion => { },
411
+ ContainerVersion => { },
412
+ CreatorVersion => { },
413
+ );
414
+
415
+ # tags in PDF AIMetaData dictionary
416
+ %Image::ExifTool::PDF::AIMetaData = (
417
+ _stream => {
418
+ SubDirectory => { TagTable => 'Image::ExifTool::PostScript::Main' },
419
+ },
420
+ );
421
+
422
+ # tags in PDF ImageResources dictionary
423
+ %Image::ExifTool::PDF::ImageResources = (
424
+ _stream => {
425
+ SubDirectory => { TagTable => 'Image::ExifTool::Photoshop::Main' },
426
+ },
427
+ );
428
+
429
+ # tags in PDF MarkInfo dictionary
430
+ %Image::ExifTool::PDF::MarkInfo = (
431
+ GROUPS => { 2 => 'Document' },
432
+ Marked => {
433
+ Name => 'TaggedPDF',
434
+ Notes => "not a Tagged PDF if this tag is missing",
435
+ PrintConv => { 'true' => 'Yes', 'false' => 'No' },
436
+ },
437
+ );
438
+
439
+ # tags in PDF Metadata dictionary
440
+ %Image::ExifTool::PDF::Metadata = (
441
+ GROUPS => { 2 => 'Document' },
442
+ XML_stream => { # this is the stream for a Subtype /XML dictionary (not a real tag)
443
+ Name => 'XMP',
444
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::Main' },
445
+ },
446
+ );
447
+
448
+ # tags in PDF signature directories (DocMDP, FieldMDP or UR3)
449
+ %Image::ExifTool::PDF::Signature = (
450
+ GROUPS => { 2 => 'Document' },
451
+ ContactInfo => 'SignerContactInfo',
452
+ Location => 'SigningLocation',
453
+ M => {
454
+ Name => 'SigningDate',
455
+ Format => 'date',
456
+ Groups => { 2 => 'Time' },
457
+ PrintConv => '$self->ConvertDateTime($val)',
458
+ },
459
+ Name => 'SigningAuthority',
460
+ Reason => 'SigningReason',
461
+ Reference => {
462
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Reference' },
463
+ },
464
+ Prop_AuthTime => {
465
+ Name => 'AuthenticationTime',
466
+ PrintConv => 'ConvertTimeSpan($val) . " ago"',
467
+ },
468
+ Prop_AuthType => 'AuthenticationType',
469
+ );
470
+
471
+ # tags in PDF Reference dictionary
472
+ %Image::ExifTool::PDF::Reference = (
473
+ TransformParams => {
474
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::TransformParams' },
475
+ },
476
+ );
477
+
478
+ # tags in PDF TransformParams dictionary
479
+ %Image::ExifTool::PDF::TransformParams = (
480
+ GROUPS => { 2 => 'Document' },
481
+ Annots => {
482
+ Name => 'AnnotationUsageRights',
483
+ Notes => q{
484
+ possible values are Create, Delete, Modify, Copy, Import and Export;
485
+ additional values for UR3 signatures are Online and SummaryView
486
+ },
487
+ List => 1,
488
+ },
489
+ Document => {
490
+ Name => 'DocumentUsageRights',
491
+ Notes => 'only possible value is FullSave',
492
+ List => 1,
493
+ },
494
+ Form => {
495
+ Name => 'FormUsageRights',
496
+ Notes => q{
497
+ possible values are FillIn, Import, Export, SubmitStandalone and
498
+ SpawnTemplate; additional values for UR3 signatures are BarcodePlaintext and
499
+ Online
500
+ },
501
+ List => 1,
502
+ },
503
+ FormEX => {
504
+ Name => 'FormExtraUsageRights',
505
+ Notes => 'UR signatures only; only possible value is BarcodePlaintext',
506
+ List => 1,
507
+ },
508
+ Signature => {
509
+ Name => 'SignatureUsageRights',
510
+ Notes => 'only possible value is Modify',
511
+ List => 1,
512
+ },
513
+ EF => {
514
+ Name => 'EmbeddedFileUsageRights',
515
+ Notes => 'possible values are Create, Delete, Modify and Import',
516
+ List => 1,
517
+ },
518
+ Msg => 'UsageRightsMessage',
519
+ P => {
520
+ Name => 'ModificationPermissions',
521
+ Notes => q{
522
+ 1-3 for DocMDP signatures, default 2; true/false for UR3 signatures, default
523
+ false
524
+ },
525
+ PrintConv => {
526
+ 1 => 'No changes permitted',
527
+ 2 => 'Fill forms, Create page templates, Sign',
528
+ 3 => 'Fill forms, Create page templates, Sign, Create/Delete/Edit annotations',
529
+ 'true' => 'Restrict all applications to reader permissions',
530
+ 'false' => 'Do not restrict applications to reader permissions',
531
+ },
532
+ },
533
+ Action => {
534
+ Name => 'FieldPermissions',
535
+ Notes => 'FieldMDP signatures only',
536
+ PrintConv => {
537
+ 'All' => 'Disallow changes to all form fields',
538
+ 'Include' => 'Disallow changes to specified form fields',
539
+ 'Exclude' => 'Allow changes to specified form fields',
540
+ },
541
+ },
542
+ Fields => {
543
+ Notes => 'FieldMDP signatures only',
544
+ Name => 'FormFields',
545
+ List => 1,
546
+ },
547
+ );
548
+
549
+ # unknown tags for use in verbose option
550
+ %Image::ExifTool::PDF::Unknown = (
551
+ GROUPS => { 2 => 'Unknown' },
552
+ );
553
+
554
+ #------------------------------------------------------------------------------
555
+ # AutoLoad our writer routines when necessary
556
+ #
557
+ sub AUTOLOAD
558
+ {
559
+ return Image::ExifTool::DoAutoLoad($AUTOLOAD, @_);
560
+ }
561
+
562
+ #------------------------------------------------------------------------------
563
+ # Convert from PDF to EXIF-style date/time
564
+ # Inputs: 0) PDF date/time string (D:YYYYmmddHHMMSS+HH'MM')
565
+ # Returns: EXIF date string (YYYY:mm:dd HH:MM:SS+HH:MM)
566
+ sub ConvertPDFDate($)
567
+ {
568
+ my $date = shift;
569
+ # remove optional 'D:' prefix
570
+ $date =~ s/^D://;
571
+ # fill in default values if necessary
572
+ # YYYYmmddHHMMSS
573
+ my $default = '00000101000000';
574
+ if (length $date < length $default) {
575
+ $date .= substr($default, length $date);
576
+ }
577
+ $date =~ /^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(.*)/ or return $date;
578
+ $date = "$1:$2:$3 $4:$5:$6";
579
+ if ($7) {
580
+ my $tz = $7;
581
+ if ($tz =~ /^\s*Z/i) {
582
+ # ignore any "HH'mm'" after the Z (OS X 10.6 does this)
583
+ $date .= 'Z';
584
+ # tolerate some improper formatting in timezone specification
585
+ } elsif ($tz =~ /^\s*([-+])\s*(\d+)[': ]+(\d*)/) {
586
+ $date .= $1 . $2 . ':' . ($3 || '00');
587
+ }
588
+ }
589
+ return $date;
590
+ }
591
+
592
+ #------------------------------------------------------------------------------
593
+ # Locate any object in the XRef tables (including compressed objects)
594
+ # Inputs: 0) XRef reference, 1) object reference string (or free object number)
595
+ # Returns: offset to object in file or compressed object reference string,
596
+ # 0 if object is free, or undefined on error
597
+ sub LocateAnyObject($$)
598
+ {
599
+ my ($xref, $ref) = @_;
600
+ return undef unless $xref;
601
+ return $$xref{$ref} if exists $$xref{$ref};
602
+ # get the object number
603
+ return undef unless $ref =~ /^(\d+)/;
604
+ my $objNum = $1;
605
+ # return 0 if the object number has been reused (old object is free)
606
+ return 0 if defined $$xref{$objNum};
607
+ #
608
+ # scan our XRef stream dictionaries for this object
609
+ #
610
+ return undef unless $$xref{dicts};
611
+ my $dict;
612
+ foreach $dict (@{$$xref{dicts}}) {
613
+ # quick check to see if the object is in the range for this xref stream
614
+ next if $objNum >= $$dict{Size};
615
+ my $index = $$dict{Index};
616
+ next if $objNum < $$index[0];
617
+ # scan the tables for the specified object
618
+ my $size = $$dict{_entry_size};
619
+ my $num = scalar(@$index) / 2;
620
+ my $tot = 0;
621
+ my $i;
622
+ for ($i=0; $i<$num; ++$i) {
623
+ my $start = $$index[$i*2];
624
+ my $count = $$index[$i*2+1];
625
+ # table is in ascending order, so quit if we have passed the object
626
+ last if $objNum < $start;
627
+ if ($objNum < $start + $count) {
628
+ my $offset = $size * ($objNum - $start + $tot);
629
+ last if $offset + $size > length $$dict{_stream};
630
+ my @c = unpack("x$offset C$size", $$dict{_stream});
631
+ # extract values from this table entry
632
+ # (can be 1, 2, 3, 4, etc.. bytes per value)
633
+ my (@t, $j, $k);
634
+ my $w = $$dict{W};
635
+ for ($j=0; $j<3; ++$j) {
636
+ # use default value if W entry is 0 (as per spec)
637
+ # - 0th element defaults to 1, others default to 0
638
+ $$w[$j] or $t[$j] = ($j ? 0 : 1), next;
639
+ $t[$j] = shift(@c);
640
+ for ($k=1; $k < $$w[$j]; ++$k) {
641
+ $t[$j] = 256 * $t[$j] + shift(@c);
642
+ }
643
+ }
644
+ # by default, use "o g R" as the xref key
645
+ # (o = object number, g = generation number)
646
+ my $ref2 = "$objNum $t[2] R";
647
+ if ($t[0] == 1) {
648
+ # normal object reference:
649
+ # $t[1]=offset of object from start, $t[2]=generation number
650
+ $$xref{$ref2} = $t[1];
651
+ } elsif ($t[0] == 2) {
652
+ # compressed object reference:
653
+ # $t[1]=stream object number, $t[2]=index of object in stream
654
+ $ref2 = "$objNum 0 R";
655
+ $$xref{$ref2} = "I$t[2] $t[1] 0 R";
656
+ } elsif ($t[0] == 0) {
657
+ # free object:
658
+ # $t[1]=next free object in linked list, $t[2]=generation number
659
+ $$xref{$ref2} = 0;
660
+ } else {
661
+ # treat as a null object
662
+ $$xref{$ref2} = undef;
663
+ }
664
+ $$xref{$objNum} = $t[1]; # remember offsets by object number too
665
+ return $$xref{$ref} if $ref eq $ref2;
666
+ return 0; # object is free or was reused
667
+ }
668
+ $tot += $count;
669
+ }
670
+ }
671
+ return undef;
672
+ }
673
+
674
+ #------------------------------------------------------------------------------
675
+ # Locate a regular object in the XRef tables (does not include compressed objects)
676
+ # Inputs: 0) XRef reference, 1) object reference string (or free object number)
677
+ # Returns: offset to object in file, 0 if object is free,
678
+ # or undef on error or if object was compressed
679
+ sub LocateObject($$)
680
+ {
681
+ my ($xref, $ref) = @_;
682
+ my $offset = LocateAnyObject($xref, $ref);
683
+ return undef if $offset and $offset =~ /^I/;
684
+ return $offset;
685
+ }
686
+
687
+ #------------------------------------------------------------------------------
688
+ # Fetch indirect object from file (from inside a stream if required)
689
+ # Inputs: 0) ExifTool object reference, 1) object reference string,
690
+ # 2) xref lookup, 3) object name (for warning messages)
691
+ # Returns: object data or undefined on error
692
+ # Notes: sets $lastFetched to the object reference, or undef if the object
693
+ # was extracted from an encrypted stream
694
+ sub FetchObject($$$$)
695
+ {
696
+ my ($et, $ref, $xref, $tag) = @_;
697
+ $lastFetched = $ref; # save this for decoding if necessary
698
+ my $offset = LocateAnyObject($xref, $ref);
699
+ $lastOffset = $offset;
700
+ unless ($offset) {
701
+ $et->Warn("Bad $tag reference") unless defined $offset;
702
+ return undef;
703
+ }
704
+ my ($data, $obj);
705
+ if ($offset =~ s/^I(\d+) //) {
706
+ my $index = $1; # object index in stream
707
+ my ($objNum) = split ' ', $ref; # save original object number
708
+ $ref = $offset; # now a reference to the containing stream object
709
+ $obj = $streamObjs{$ref};
710
+ unless ($obj) {
711
+ # don't try to load the same object stream twice
712
+ return undef if defined $obj;
713
+ $streamObjs{$ref} = '';
714
+ # load the parent object stream
715
+ $obj = FetchObject($et, $ref, $xref, $tag);
716
+ # make sure it contains everything we need
717
+ return undef unless defined $obj and ref($obj) eq 'HASH';
718
+ return undef unless $$obj{First} and $$obj{N};
719
+ return undef unless DecodeStream($et, $obj);
720
+ # add a special '_table' entry to this dictionary which contains
721
+ # the list of object number/offset pairs from the stream header
722
+ my $num = $$obj{N} * 2;
723
+ my @table = split ' ', $$obj{_stream}, $num;
724
+ return undef unless @table == $num;
725
+ # remove everything before first object in stream
726
+ $$obj{_stream} = substr($$obj{_stream}, $$obj{First});
727
+ $table[$num-1] =~ s/^(\d+).*/$1/s; # trim excess from last number
728
+ $$obj{_table} = \@table;
729
+ # save the object stream so we don't have to re-load it later
730
+ $streamObjs{$ref} = $obj;
731
+ }
732
+ # verify that we have the specified object
733
+ my $i = 2 * $index;
734
+ my $table = $$obj{_table};
735
+ unless ($index < $$obj{N} and $$table[$i] == $objNum) {
736
+ $et->Warn("Bad index for stream object $tag");
737
+ return undef;
738
+ }
739
+ # extract the object at the specified index in the stream
740
+ # (offsets in table are in sequential order, so we can subract from
741
+ # the next offset to get the object length)
742
+ $offset = $$table[$i + 1];
743
+ my $len = ($$table[$i + 3] || length($$obj{_stream})) - $offset;
744
+ $data = substr($$obj{_stream}, $offset, $len);
745
+ # avoid re-decrypting data in already decrypted streams
746
+ undef $lastFetched if $cryptStream;
747
+ return ExtractObject($et, \$data);
748
+ }
749
+ my $raf = $$et{RAF};
750
+ $raf->Seek($offset, 0) or $et->Warn("Bad $tag offset"), return undef;
751
+ # verify that we are reading the expected object
752
+ $raf->ReadLine($data) or $et->Warn("Error reading $tag data"), return undef;
753
+ ($obj = $ref) =~ s/R/obj/;
754
+ unless ($data =~ s/^$obj//) {
755
+ $et->Warn("$tag object ($obj) not found at $offset");
756
+ return undef;
757
+ }
758
+ # read the first line of data for the object (skipping comments if necessary)
759
+ for (;;) {
760
+ last if $data =~ /\S/ and $data !~ /^\s*%/;
761
+ $raf->ReadLine($data) or $et->Warn("Error reading $tag data"), return undef;
762
+ }
763
+ return ExtractObject($et, \$data, $raf, $xref);
764
+ }
765
+
766
+ #------------------------------------------------------------------------------
767
+ # Convert PDF value to something readable
768
+ # Inputs: 0) PDF object data
769
+ # Returns: converted object
770
+ sub ReadPDFValue($)
771
+ {
772
+ my $str = shift;
773
+ # decode all strings in an array
774
+ if (ref $str eq 'ARRAY') {
775
+ # create new list to not alter the original data when rewriting
776
+ my ($val, @vals);
777
+ foreach $val (@$str) {
778
+ push @vals, ReadPDFValue($val);
779
+ }
780
+ return \@vals;
781
+ }
782
+ length $str or return $str;
783
+ my $delim = substr($str, 0, 1);
784
+ if ($delim eq '(') { # literal string
785
+ $str = $1 if $str =~ /^.*?\((.*)\)/s; # remove brackets
786
+ # decode escape sequences in literal strings
787
+ while ($str =~ /\\(.)/sg) {
788
+ my $n = pos($str) - 2;
789
+ my $c = $1;
790
+ my $r;
791
+ if ($c =~ /[0-7]/) {
792
+ # get up to 2 more octal digits
793
+ $c .= $1 if $str =~ /\G([0-7]{1,2})/g;
794
+ # convert octal escape code
795
+ $r = chr(oct($c) & 0xff);
796
+ } elsif ($c eq "\x0d") {
797
+ # the string is continued if the line ends with '\'
798
+ # (also remove "\x0d\x0a")
799
+ $c .= $1 if $str =~ /\G(\x0a)/g;
800
+ $r = '';
801
+ } elsif ($c eq "\x0a") {
802
+ $r = '';
803
+ } else {
804
+ # convert escaped characters
805
+ ($r = $c) =~ tr/nrtbf/\n\r\t\b\f/;
806
+ }
807
+ substr($str, $n, length($c)+1) = $r;
808
+ # continue search after this character
809
+ pos($str) = $n + length($r);
810
+ }
811
+ Crypt(\$str, $lastFetched) if $cryptString;
812
+ } elsif ($delim eq '<') { # hex string
813
+ # decode hex data
814
+ $str =~ tr/0-9A-Fa-f//dc;
815
+ $str .= '0' if length($str) & 0x01; # (by the spec)
816
+ $str = pack('H*', $str);
817
+ Crypt(\$str, $lastFetched) if $cryptString;
818
+ } elsif ($delim eq '/') { # name
819
+ $str = substr($str, 1);
820
+ # convert escape codes (PDF 1.2 or later)
821
+ $str =~ s/#([0-9a-f]{2})/chr(hex($1))/sgei if $pdfVer >= 1.2;
822
+ }
823
+ return $str;
824
+ }
825
+
826
+ #------------------------------------------------------------------------------
827
+ # Extract PDF object from combination of buffered data and file
828
+ # Inputs: 0) ExifTool object reference, 1) data reference,
829
+ # 2) optional raf reference, 3) optional xref table
830
+ # Returns: converted PDF object or undef on error
831
+ # a) dictionary object --> hash reference
832
+ # b) array object --> array reference
833
+ # c) indirect reference --> scalar reference
834
+ # d) string, name, integer, boolean, null --> scalar value
835
+ # - updates $$dataPt on return to contain unused data
836
+ # - creates two bogus entries ('_stream' and '_tags') in dictionaries to represent
837
+ # the stream data and a list of the tags (not including '_stream' and '_tags')
838
+ # in their original order
839
+ sub ExtractObject($$;$$)
840
+ {
841
+ my ($et, $dataPt, $raf, $xref) = @_;
842
+ my (@tags, $data, $objData);
843
+ my $dict = { };
844
+ my $delim;
845
+
846
+ for (;;) {
847
+ if ($$dataPt =~ /^\s*(<{1,2}|\[|\()/s) {
848
+ $delim = $1;
849
+ $$dataPt =~ s/^\s+//; # remove leading white space
850
+ $objData = ReadToNested($dataPt, $raf);
851
+ return undef unless defined $objData;
852
+ last;
853
+ } elsif ($$dataPt =~ s{^\s*(\S[^[(/<>\s]*)\s*}{}s) {
854
+ #
855
+ # extract boolean, numerical, string, name, null object or indirect reference
856
+ #
857
+ $objData = $1;
858
+ # look for an indirect reference
859
+ if ($objData =~ /^\d+$/ and $$dataPt =~ s/^(\d+)\s+R//s) {
860
+ $objData .= "$1 R";
861
+ $objData = \$objData; # return scalar reference
862
+ }
863
+ return $objData; # return simple scalar or scalar reference
864
+ }
865
+ $raf and $raf->ReadLine($data) or return undef;
866
+ $$dataPt .= $data;
867
+ }
868
+ #
869
+ # return literal string or hex string without parsing
870
+ #
871
+ if ($delim eq '(' or $delim eq '<') {
872
+ return $objData;
873
+ #
874
+ # extract array
875
+ #
876
+ } elsif ($delim eq '[') {
877
+ $objData =~ /^.*?\[(.*)\]/s or return undef;
878
+ my $data = $1; # brackets removed
879
+ my @list;
880
+ for (;;) {
881
+ last unless $data =~ m{\s*(\S[^[(/<>\s]*)}sg;
882
+ my $val = $1;
883
+ if ($val =~ /^(<{1,2}|\[|\()/) {
884
+ my $pos = pos($data) - length($val);
885
+ # nested dict, array, literal string or hex string
886
+ my $buff = substr($data, $pos);
887
+ $val = ReadToNested(\$buff);
888
+ last unless defined $val;
889
+ pos($data) = $pos + length($val);
890
+ $val = ExtractObject($et, \$val);
891
+ } elsif ($val =~ /^\d/) {
892
+ my $pos = pos($data);
893
+ if ($data =~ /\G\s+(\d+)\s+R/g) {
894
+ $val = \ "$val $1 R"; # make a reference
895
+ } else {
896
+ pos($data) = $pos;
897
+ }
898
+ }
899
+ push @list, $val;
900
+ }
901
+ return \@list;
902
+ }
903
+ #
904
+ # extract dictionary
905
+ #
906
+ # Note: entries are not necessarily separated by whitespace (doh!)
907
+ # eg) "/Tag/Name", "/Tag(string)", "/Tag[array]", etc are legal!
908
+ # Also, they may be separated by a comment (eg. "/Tag%comment\nValue"),
909
+ # but comments have already been removed
910
+ while ($objData =~ m{(\s*)/([^/[\]()<>{}\s]+)\s*(\S[^[(/<>\s]*)}sg) {
911
+ my $tag = $2;
912
+ my $val = $3;
913
+ if ($val =~ /^(<{1,2}|\[|\()/) {
914
+ # nested dict, array, literal string or hex string
915
+ $objData = substr($objData, pos($objData)-length($val));
916
+ $val = ReadToNested(\$objData, $raf);
917
+ last unless defined $val;
918
+ $val = ExtractObject($et, \$val);
919
+ pos($objData) = 0;
920
+ } elsif ($val =~ /^\d/) {
921
+ my $pos = pos($objData);
922
+ if ($objData =~ /\G\s+(\d+)\s+R/sg) {
923
+ $val = \ "$val $1 R"; # make a reference
924
+ } else {
925
+ pos($objData) = $pos;
926
+ }
927
+ }
928
+ if ($$dict{$tag}) {
929
+ # duplicate dictionary entries are not allowed
930
+ $et->Warn("Duplicate '$tag' entry in dictionary (ignored)");
931
+ } else {
932
+ # save the entry
933
+ push @tags, $tag;
934
+ $$dict{$tag} = $val;
935
+ }
936
+ }
937
+ return undef unless @tags;
938
+ $$dict{_tags} = \@tags;
939
+ return $dict unless $raf; # direct objects can not have streams
940
+ #
941
+ # extract the stream object
942
+ #
943
+ # dictionary must specify stream Length
944
+ my $length = $$dict{Length} or return $dict;
945
+ if (ref $length) {
946
+ $length = $$length;
947
+ my $oldpos = $raf->Tell();
948
+ # get the location of the object specifying the length
949
+ # (compressed objects are not allowed)
950
+ my $offset = LocateObject($xref, $length) or return $dict;
951
+ $offset or $et->Warn('Bad Length object'), return $dict;
952
+ $raf->Seek($offset, 0) or $et->Warn('Bad Length offset'), return $dict;
953
+ # verify that we are reading the expected object
954
+ $raf->ReadLine($data) or $et->Warn('Error reading Length data'), return $dict;
955
+ $length =~ s/R/obj/;
956
+ unless ($data =~ /^$length\s+(\d+)?/) {
957
+ $et->Warn("Length object ($length) not found at $offset");
958
+ return $dict;
959
+ }
960
+ if (defined $1) {
961
+ $length = $1;
962
+ } else {
963
+ $raf->ReadLine($data) or $et->Warn('Error reading stream Length'), return $dict;
964
+ $data =~ /^\s*(\d+)/ or $et->Warn('Stream length not found'), return $dict;
965
+ $length = $1;
966
+ }
967
+ $raf->Seek($oldpos, 0); # restore position to start of stream
968
+ }
969
+ # extract the trailing stream data
970
+ for (;;) {
971
+ # find the stream token
972
+ if ($$dataPt =~ /(\S+)/) {
973
+ last unless $1 eq 'stream';
974
+ # read an extra line because it may contain our \x0a
975
+ $$dataPt .= $data if $raf->ReadLine($data);
976
+ # remove our stream header
977
+ $$dataPt =~ s/^\s*stream(\x0a|\x0d\x0a)//s;
978
+ my $more = $length - length($$dataPt);
979
+ if ($more > 0) {
980
+ unless ($raf->Read($data, $more) == $more) {
981
+ $et->Warn('Error reading stream data');
982
+ $$dataPt = '';
983
+ return $dict;
984
+ }
985
+ $$dict{_stream} = $$dataPt . $data;
986
+ $$dataPt = '';
987
+ } elsif ($more < 0) {
988
+ $$dict{_stream} = substr($$dataPt, 0, $length);
989
+ $$dataPt = substr($$dataPt, $length);
990
+ } else {
991
+ $$dict{_stream} = $$dataPt;
992
+ $$dataPt = '';
993
+ }
994
+ last;
995
+ }
996
+ $raf->ReadLine($data) or last;
997
+ $$dataPt .= $data;
998
+ }
999
+ return $dict;
1000
+ }
1001
+
1002
+ #------------------------------------------------------------------------------
1003
+ # Read to nested delimiter
1004
+ # Inputs: 0) data reference, 1) optional raf reference
1005
+ # Returns: data up to and including matching delimiter (or undef on error)
1006
+ # - updates data reference with trailing data
1007
+ # - unescapes characters in literal strings
1008
+ my %closingDelim = ( # lookup for matching delimiter
1009
+ '(' => ')',
1010
+ '[' => ']',
1011
+ '<' => '>',
1012
+ '<<' => '>>',
1013
+ );
1014
+ sub ReadToNested($;$)
1015
+ {
1016
+ my ($dataPt, $raf) = @_;
1017
+ my @delim = (''); # closing delimiter list, most deeply nested first
1018
+ pos($$dataPt) = 0; # begin at start of data
1019
+ for (;;) {
1020
+ unless ($$dataPt =~ /(\\*)(\(|\)|<{1,2}|>{1,2}|\[|\]|%)/g) {
1021
+ # must read some more data
1022
+ my $buff;
1023
+ last unless $raf and $raf->ReadLine($buff);
1024
+ $$dataPt .= $buff;
1025
+ pos($$dataPt) = length($$dataPt) - length($buff);
1026
+ next;
1027
+ }
1028
+ # are we in a literal string?
1029
+ if ($delim[0] eq ')') {
1030
+ # ignore escaped delimiters (preceded by odd number of \'s)
1031
+ next if length($1) & 0x01;
1032
+ # ignore all delimiters but unescaped braces
1033
+ next unless $2 eq '(' or $2 eq ')';
1034
+ } elsif ($2 eq '%') {
1035
+ # ignore the comment
1036
+ my $pos = pos($$dataPt) - 1;
1037
+ # remove everything from '%' up to but not including newline
1038
+ $$dataPt =~ /.*/g;
1039
+ my $end = pos($$dataPt);
1040
+ $$dataPt = substr($$dataPt, 0, $pos) . substr($$dataPt, $end);
1041
+ pos($$dataPt) = $pos;
1042
+ next;
1043
+ }
1044
+ if ($closingDelim{$2}) {
1045
+ # push the corresponding closing delimiter
1046
+ unshift @delim, $closingDelim{$2};
1047
+ next;
1048
+ }
1049
+ unless ($2 eq $delim[0]) {
1050
+ # handle the case where we find a ">>>" and interpret it
1051
+ # as ">> >" instead of "> >>"
1052
+ next unless $2 eq '>>' and $delim[0] eq '>';
1053
+ pos($$dataPt) = pos($$dataPt) - 1;
1054
+ }
1055
+ shift @delim; # remove from nesting list
1056
+ next if $delim[0]; # keep going if we have more nested delimiters
1057
+ my $pos = pos($$dataPt);
1058
+ my $buff = substr($$dataPt, 0, $pos);
1059
+ $$dataPt = substr($$dataPt, $pos);
1060
+ return $buff; # success!
1061
+ }
1062
+ return undef; # didn't find matching delimiter
1063
+ }
1064
+
1065
+ #------------------------------------------------------------------------------
1066
+ # Decode LZW-encoded data (ref 1)
1067
+ # Inputs: 0) data reference
1068
+ # Returns: true on success and data is decoded, or false and data is untouched
1069
+ sub DecodeLZW($)
1070
+ {
1071
+ my $dataPt = shift;
1072
+ return 0 if length $$dataPt < 4;
1073
+ my @lzw = (map(chr, 0..255), undef, undef); # LZW code table
1074
+ my $mask = 0x01ff; # mask for least-significant 9 bits
1075
+ my @dat = unpack 'n*', $$dataPt . "\0";
1076
+ my $word = ($dat[0] << 16) | $dat[1];
1077
+ my ($bit, $pos, $bits, $out) = (0, 2, 9, '');
1078
+ my $lastVal;
1079
+ for (;;) {
1080
+ # bits are packed MSB first in PDF LZW (the PDF spec doesn't mention this)
1081
+ my $shift = 32 - ($bit + $bits);
1082
+ if ($shift < 0) {
1083
+ return 0 if $pos >= @dat; # missing EOD marker
1084
+ $word = (($word & 0xffff) << 16) | $dat[$pos++]; # read next word
1085
+ $bit -= 16;
1086
+ $shift += 16;
1087
+ };
1088
+ my $code = ($word >> $shift) & $mask;
1089
+ $bit += $bits;
1090
+ my $val = $lzw[$code];
1091
+ if (defined $val) {
1092
+ # store new code as previous sequence plus 1st char of new sequence
1093
+ push @lzw, $lastVal . substr($val, 0, 1) if defined $lastVal;
1094
+ } elsif ($code == @lzw) { # new code
1095
+ return 0 unless defined $lastVal;
1096
+ # we are using the code that we are about to generate, so the last
1097
+ # character in the new sequence must be the same as the first
1098
+ # character in the previous sequence (makes sense if you think about it)
1099
+ $val = $lastVal . substr($lastVal, 0, 1);
1100
+ push @lzw, $val;
1101
+ } elsif ($code == 256) { # clear table
1102
+ splice @lzw, 258;
1103
+ $bits = 9;
1104
+ $mask = 0x1ff;
1105
+ undef $lastVal;
1106
+ next;
1107
+ } elsif ($code == 257) { # EOD marker
1108
+ last; # all done!
1109
+ } else {
1110
+ return 0;
1111
+ }
1112
+ $out .= $val; # add this byte sequence to the output
1113
+ # we added a new entry to the LZW table, so we must increase
1114
+ # the bit width if necessary, up to a maximum of 12
1115
+ @lzw >= $mask and $bits < 12 and ++$bits, $mask |= $mask << 1;
1116
+ $lastVal = $val;
1117
+ }
1118
+ $$dataPt = $out; # return decompressed data
1119
+ return 1;
1120
+ }
1121
+
1122
+ #------------------------------------------------------------------------------
1123
+ # Decode filtered stream
1124
+ # Inputs: 0) ExifTool object reference, 1) dictionary reference
1125
+ # Returns: true if stream has been decoded OK
1126
+ sub DecodeStream($$)
1127
+ {
1128
+ local $_;
1129
+ my ($et, $dict) = @_;
1130
+
1131
+ return 0 unless $$dict{_stream}; # no stream to decode
1132
+
1133
+ # get list of filters
1134
+ my (@filters, @decodeParms, $filter);
1135
+ if (ref $$dict{Filter} eq 'ARRAY') {
1136
+ @filters = @{$$dict{Filter}};
1137
+ } elsif (defined $$dict{Filter}) {
1138
+ @filters = ($$dict{Filter});
1139
+ }
1140
+ # be sure we can process all the filters before we take the time to do the decryption
1141
+ foreach $filter (@filters) {
1142
+ next if $supportedFilter{$filter};
1143
+ $et->WarnOnce("Unsupported Filter $filter");
1144
+ return 0;
1145
+ }
1146
+ # apply decryption first if required (and if the default encryption
1147
+ # has not been overridden by a Crypt filter. Note: the Crypt filter
1148
+ # must be first in the Filter array: ref 3, page 38)
1149
+ unless (defined $$dict{_decrypted} or ($filters[0] and $filters[0] eq '/Crypt')) {
1150
+ CryptStream($dict, $lastFetched);
1151
+ }
1152
+ return 1 unless $$dict{Filter}; # Filter entry is mandatory
1153
+ return 0 if defined $$dict{_filtered}; # avoid double-filtering
1154
+ $$dict{_filtered} = 1; # set flag to prevent double-filtering
1155
+
1156
+ # get array of DecodeParms dictionaries
1157
+ if (ref $$dict{DecodeParms} eq 'ARRAY') {
1158
+ @decodeParms = @{$$dict{DecodeParms}};
1159
+ } else {
1160
+ @decodeParms = ($$dict{DecodeParms});
1161
+ }
1162
+
1163
+ foreach $filter (@filters) {
1164
+ my $decodeParms = shift @decodeParms;
1165
+
1166
+ if ($filter eq '/FlateDecode') {
1167
+ # make sure we support the predictor (if used) before decoding
1168
+ my $pre;
1169
+ if (ref $decodeParms eq 'HASH') {
1170
+ $pre = $$decodeParms{Predictor};
1171
+ if ($pre and $pre ne '1' and $pre ne '12') {
1172
+ $et->WarnOnce("FlateDecode Predictor $pre currently not supported");
1173
+ return 0;
1174
+ }
1175
+ }
1176
+ if (eval { require Compress::Zlib }) {
1177
+ my $inflate = Compress::Zlib::inflateInit();
1178
+ my ($buff, $stat);
1179
+ $inflate and ($buff, $stat) = $inflate->inflate($$dict{_stream});
1180
+ if ($inflate and $stat == Compress::Zlib::Z_STREAM_END()) {
1181
+ $$dict{_stream} = $buff;
1182
+ } else {
1183
+ $et->Warn('Error inflating stream');
1184
+ return 0;
1185
+ }
1186
+ } else {
1187
+ $et->WarnOnce('Install Compress::Zlib to process filtered streams');
1188
+ return 0;
1189
+ }
1190
+ next unless $pre and $pre eq '12'; # 12 = 'up' prediction
1191
+
1192
+ # apply anti-predictor
1193
+ my $cols = $$decodeParms{Columns};
1194
+ unless ($cols) {
1195
+ # currently only support 'up' prediction
1196
+ $et->WarnOnce('No Columns for decoding stream');
1197
+ return 0;
1198
+ }
1199
+ my @bytes = unpack('C*', $$dict{_stream});
1200
+ my @pre = (0) x $cols; # initialize predictor array
1201
+ my $buff = '';
1202
+ while (@bytes > $cols) {
1203
+ unless (($_ = shift @bytes) == 2) {
1204
+ $et->WarnOnce("Unsupported PNG filter $_"); # (yes, PNG)
1205
+ return 0;
1206
+ }
1207
+ foreach (@pre) {
1208
+ $_ = ($_ + shift(@bytes)) & 0xff;
1209
+ }
1210
+ $buff .= pack('C*', @pre);
1211
+ }
1212
+ $$dict{_stream} = $buff;
1213
+
1214
+ } elsif ($filter eq '/Crypt') {
1215
+
1216
+ # (we shouldn't have to check the _decrypted flag since we
1217
+ # already checked the _filtered flag, but what the heck...)
1218
+ next if defined $$dict{_decrypted};
1219
+ # assume Identity filter (the default) if DecodeParms are missing
1220
+ next unless ref $decodeParms eq 'HASH';
1221
+ my $name = $$decodeParms{Name};
1222
+ next unless defined $name or $name eq 'Identity';
1223
+ if ($name ne 'StdCF') {
1224
+ $et->WarnOnce("Unsupported Crypt Filter $name");
1225
+ return 0;
1226
+ }
1227
+ unless ($cryptInfo) {
1228
+ $et->WarnOnce('Missing Encrypt StdCF entry');
1229
+ return 0;
1230
+ }
1231
+ # decrypt the stream manually because we want to:
1232
+ # 1) ignore $cryptStream (StmF) setting
1233
+ # 2) ignore EncryptMetadata setting (I can't find mention of how to
1234
+ # reconcile this in the spec., but this would make sense)
1235
+ # 3) avoid adding the crypt key extension (ref 3, page 58, Algorithm 1b)
1236
+ # 4) set _decrypted flag so we will recrypt according to StmF when
1237
+ # writing (since we don't yet write Filter'd streams)
1238
+ Crypt(\$$dict{_stream}, 'none');
1239
+ $$dict{_decrypted} = ($cryptStream ? 1 : 0);
1240
+
1241
+ } elsif ($filter eq '/LZWDecode') {
1242
+
1243
+ # make sure we don't have any unsupported decoding parameters
1244
+ if (ref $decodeParms eq 'HASH') {
1245
+ if ($$decodeParms{Predictor}) {
1246
+ $et->WarnOnce("LZWDecode Predictor $$decodeParms{Predictor} currently not supported");
1247
+ return 0;
1248
+ } elsif ($$decodeParms{EarlyChange}) {
1249
+ $et->WarnOnce("LZWDecode EarlyChange currently not supported");
1250
+ return 0;
1251
+ }
1252
+ }
1253
+ unless (DecodeLZW(\$$dict{_stream})) {
1254
+ $et->WarnOnce('LZW decompress error');
1255
+ return 0;
1256
+ }
1257
+
1258
+ } elsif ($filter eq '/ASCIIHexDecode') {
1259
+
1260
+ $$dict{_stream} =~ s/>.*//; # truncate at '>' (end of data mark)
1261
+ $$dict{_stream} =~ tr/0-9a-zA-Z//d; # remove illegal characters
1262
+ $$dict{_stream} = pack 'H*', $$dict{_stream};
1263
+
1264
+ } elsif ($filter eq '/ASCII85Decode') {
1265
+
1266
+ my ($err, @out, $i);
1267
+ my ($n, $val) = (0, 0);
1268
+ foreach (split //, $$dict{_stream}) {
1269
+ if ($_ ge '!' and $_ le 'u') {;
1270
+ $val = 85 * $val + ord($_) - 33;
1271
+ next unless ++$n == 5;
1272
+ } elsif ($_ eq '~') {
1273
+ $n == 1 and $err = 1; # error to have a single char in the last group of 5
1274
+ for ($i=$n; $i<5; ++$i) { $val *= 85; }
1275
+ } elsif ($_ eq 'z') {
1276
+ $n and $err = 2, last; # error if 'z' isn't the first char
1277
+ $n = 5;
1278
+ } else {
1279
+ next if /^\s$/; # ignore white space
1280
+ $err = 3, last; # any other character is an error
1281
+ }
1282
+ $val = unpack('V', pack('N', $val)); # reverse byte order
1283
+ while (--$n > 0) {
1284
+ push @out, $val & 0xff;
1285
+ $val >>= 8;
1286
+ }
1287
+ last if $_ eq '~';
1288
+ # (both $n and $val are zero again now)
1289
+ }
1290
+ $err and $et->WarnOnce("ASCII85Decode error $err");
1291
+ $$dict{_stream} = pack('C*', @out);
1292
+ }
1293
+ }
1294
+ return 1;
1295
+ }
1296
+
1297
+ #------------------------------------------------------------------------------
1298
+ # Initialize state for RC4 en/decryption (ref 2)
1299
+ # Inputs: 0) RC4 key string
1300
+ # Returns: RC4 key hash reference
1301
+ sub RC4Init($)
1302
+ {
1303
+ my @key = unpack('C*', shift);
1304
+ my @state = (0 .. 255);
1305
+ my ($i, $j) = (0, 0);
1306
+ while ($i < 256) {
1307
+ my $st = $state[$i];
1308
+ $j = ($j + $st + $key[$i % scalar(@key)]) & 0xff;
1309
+ $state[$i++] = $state[$j];
1310
+ $state[$j] = $st;
1311
+ }
1312
+ return { State => \@state, XY => [ 0, 0 ] };
1313
+ }
1314
+
1315
+ #------------------------------------------------------------------------------
1316
+ # Apply RC4 en/decryption (ref 2)
1317
+ # Inputs: 0) data reference, 1) RC4 key hash reference or RC4 key string
1318
+ # - can call this method directly with a key string, or with with the key
1319
+ # reference returned by RC4Init
1320
+ # - RC4 is a symmetric algorithm, so encryption is the same as decryption
1321
+ sub RC4Crypt($$)
1322
+ {
1323
+ my ($dataPt, $key) = @_;
1324
+ $key = RC4Init($key) unless ref $key eq 'HASH';
1325
+ my $state = $$key{State};
1326
+ my ($x, $y) = @{$$key{XY}};
1327
+
1328
+ my @data = unpack('C*', $$dataPt);
1329
+ foreach (@data) {
1330
+ $x = ($x + 1) & 0xff;
1331
+ my $stx = $$state[$x];
1332
+ $y = ($stx + $y) & 0xff;
1333
+ my $sty = $$state[$x] = $$state[$y];
1334
+ $$state[$y] = $stx;
1335
+ $_ ^= $$state[($stx + $sty) & 0xff];
1336
+ }
1337
+ $$key{XY} = [ $x, $y ];
1338
+ $$dataPt = pack('C*', @data);
1339
+ }
1340
+
1341
+ #------------------------------------------------------------------------------
1342
+ # Update AES cipher with a bit of data
1343
+ # Inputs: 0) data
1344
+ # Returns: encrypted data
1345
+ my $cipherMore;
1346
+ sub CipherUpdate($)
1347
+ {
1348
+ my $dat = shift;
1349
+ my $pos = 0;
1350
+ $dat = $cipherMore . $dat if length $dat;
1351
+ while ($pos + 16 <= length($dat)) {
1352
+ substr($dat,$pos,16) = Image::ExifTool::AES::Cipher(substr($dat,$pos,16));
1353
+ $pos += 16;
1354
+ }
1355
+ if ($pos < length $dat) {
1356
+ $cipherMore = substr($dat,$pos);
1357
+ $dat = substr($dat,0,$pos);
1358
+ } else {
1359
+ $cipherMore = '';
1360
+ }
1361
+ return $dat;
1362
+ }
1363
+
1364
+ #------------------------------------------------------------------------------
1365
+ # Get encrypted hash
1366
+ # Inputs: 0) Password, 1) salt, 2) vector, 3) encryption revision
1367
+ # Returns: hash
1368
+ sub GetHash($$$$)
1369
+ {
1370
+ my ($password, $salt, $vector, $rev) = @_;
1371
+
1372
+ # return Rev 5 hash
1373
+ return Digest::SHA::sha256($password, $salt, $vector) if $rev == 5;
1374
+
1375
+ # compute Rev 6 hardened hash
1376
+ # (ref http://code.google.com/p/origami-pdf/source/browse/lib/origami/encryption.rb)
1377
+ my $blockSize = 32;
1378
+ my $input = Digest::SHA::sha256($password, $salt, $vector) . ("\0" x 32);
1379
+ my $key = substr($input, 0, 16);
1380
+ my $iv = substr($input, 16, 16);
1381
+ my $h;
1382
+ my $x = '';
1383
+ my $i = 0;
1384
+ while ($i < 64 or $i < ord(substr($x,-1,1))+32) {
1385
+
1386
+ my $block = substr($input, 0, $blockSize);
1387
+ $x = '';
1388
+ Image::ExifTool::AES::Crypt(\$x, $key, $iv, 1);
1389
+ $cipherMore = '';
1390
+
1391
+ my ($j, $digest);
1392
+ for ($j=0; $j<64; ++$j) {
1393
+ $x = '';
1394
+ $x .= CipherUpdate($password) if length $password;
1395
+ $x .= CipherUpdate($block);
1396
+ $x .= CipherUpdate($vector) if length $vector;
1397
+ if ($j == 0) {
1398
+ my @a = unpack('C16', $x);
1399
+ my $sum = 0;
1400
+ $sum += $_ foreach @a;
1401
+ # set SHA block size (32, 48 or 64 bytes = SHA-256, 384 or 512)
1402
+ $blockSize = 32 + ($sum % 3) * 16;
1403
+ $digest = Digest::SHA->new($blockSize * 8);
1404
+ }
1405
+ $digest->add($x);
1406
+ }
1407
+
1408
+ $h = $digest->digest();
1409
+ $key = substr($h, 0, 16);
1410
+ substr($input,0,16) = $h;
1411
+ $iv = substr($h, 16, 16);
1412
+ ++$i;
1413
+ }
1414
+ return substr($h, 0, 32);
1415
+ }
1416
+
1417
+ #------------------------------------------------------------------------------
1418
+ # Initialize decryption
1419
+ # Inputs: 0) ExifTool object reference, 1) Encrypt dictionary reference,
1420
+ # 2) ID from file trailer dictionary
1421
+ # Returns: error string or undef on success (and sets $cryptInfo)
1422
+ sub DecryptInit($$$)
1423
+ {
1424
+ local $_;
1425
+ my ($et, $encrypt, $id) = @_;
1426
+
1427
+ undef $cryptInfo;
1428
+ unless ($encrypt and ref $encrypt eq 'HASH') {
1429
+ return 'Error loading Encrypt object';
1430
+ }
1431
+ my $filt = $$encrypt{Filter};
1432
+ unless ($filt and $filt =~ s/^\///) {
1433
+ return 'Encrypt dictionary has no Filter!';
1434
+ }
1435
+ # extract some interesting tags
1436
+ my $ver = $$encrypt{V} || 0;
1437
+ my $rev = $$encrypt{R} || 0;
1438
+ my $enc = "$filt V$ver";
1439
+ $enc .= ".$rev" if $filt eq 'Standard';
1440
+ $enc .= " ($1)" if $$encrypt{SubFilter} and $$encrypt{SubFilter} =~ /^\/(.*)/;
1441
+ $enc .= ' (' . ($$encrypt{Length} || 40) . '-bit)' if $filt eq 'Standard';
1442
+ my $tagTablePtr = GetTagTable('Image::ExifTool::PDF::Encrypt');
1443
+ $et->HandleTag($tagTablePtr, 'Filter', $enc);
1444
+ if ($filt ne 'Standard') {
1445
+ return "Encryption filter $filt currently not supported";
1446
+ } elsif (not defined $$encrypt{R}) {
1447
+ return 'Standard security handler missing revision';
1448
+ }
1449
+ unless ($$encrypt{O} and $$encrypt{P} and $$encrypt{U}) {
1450
+ return 'Incomplete Encrypt specification';
1451
+ }
1452
+ if ("$ver.$rev" >= 5.6) {
1453
+ # apologize for poor performance (AES is a pure Perl implementation)
1454
+ $et->Warn('Decryption is very slow for encryption V5.6 or higher', 1);
1455
+ }
1456
+ $et->HandleTag($tagTablePtr, 'P', $$encrypt{P});
1457
+
1458
+ my %parm; # optional parameters extracted from Encrypt dictionary
1459
+
1460
+ if ($ver == 1 or $ver == 2) {
1461
+ $cryptString = $cryptStream = 1;
1462
+ } elsif ($ver == 4 or $ver == 5) {
1463
+ # initialize our $cryptString and $cryptStream flags
1464
+ foreach ('StrF', 'StmF') {
1465
+ my $flagPt = $_ eq 'StrF' ? \$cryptString : \$cryptStream;
1466
+ $$flagPt = $$encrypt{$_};
1467
+ undef $$flagPt if $$flagPt and $$flagPt eq '/Identity';
1468
+ return "Unsupported $_ encryption $$flagPt" if $$flagPt and $$flagPt ne '/StdCF';
1469
+ }
1470
+ if ($cryptString or $cryptStream) {
1471
+ return 'Missing or invalid Encrypt StdCF entry' unless ref $$encrypt{CF} eq 'HASH' and
1472
+ ref $$encrypt{CF}{StdCF} eq 'HASH' and $$encrypt{CF}{StdCF}{CFM};
1473
+ my $cryptMeth = $$encrypt{CF}{StdCF}{CFM};
1474
+ unless ($cryptMeth =~ /^\/(V2|AESV2|AESV3)$/) {
1475
+ return "Unsupported encryption method $cryptMeth";
1476
+ }
1477
+ # set "_aesv2" or "_aesv3" flag in %$encrypt hash if AES encryption was used
1478
+ $$encrypt{'_' . lc($1)} = 1 if $cryptMeth =~ /^\/(AESV2|AESV3)$/;
1479
+ }
1480
+ if ($ver == 5) {
1481
+ # validate OE and UE entries
1482
+ foreach ('OE', 'UE') {
1483
+ return "Missing Encrypt $_ entry" unless $$encrypt{$_};
1484
+ $parm{$_} = ReadPDFValue($$encrypt{$_});
1485
+ return "Invalid Encrypt $_ entry" unless length $parm{$_} == 32;
1486
+ }
1487
+ require Image::ExifTool::AES; # will need this later
1488
+ }
1489
+ } else {
1490
+ return "Encryption version $ver currently not supported";
1491
+ }
1492
+ $id or return "Can't decrypt (no document ID)";
1493
+
1494
+ # make sure we have the necessary libraries available
1495
+ if ($ver < 5) {
1496
+ unless (eval { require Digest::MD5 }) {
1497
+ return "Install Digest::MD5 to process encrypted PDF";
1498
+ }
1499
+ } else {
1500
+ unless (eval { require Digest::SHA }) {
1501
+ return "Install Digest::SHA to process AES-256 encrypted PDF";
1502
+ }
1503
+ }
1504
+
1505
+ # calculate file-level en/decryption key
1506
+ my $pad = "\x28\xBF\x4E\x5E\x4E\x75\x8A\x41\x64\x00\x4E\x56\xFF\xFA\x01\x08".
1507
+ "\x2E\x2E\x00\xB6\xD0\x68\x3E\x80\x2F\x0C\xA9\xFE\x64\x53\x69\x7A";
1508
+ my $o = ReadPDFValue($$encrypt{O});
1509
+ my $u = ReadPDFValue($$encrypt{U});
1510
+
1511
+ # set flag indicating whether metadata is encrypted
1512
+ # (in version 4 and higher, metadata streams may not be encrypted)
1513
+ if ($ver < 4 or not $$encrypt{EncryptMetadata} or $$encrypt{EncryptMetadata} !~ /false/i) {
1514
+ $$encrypt{_meta} = 1;
1515
+ }
1516
+ # try no password first, then try provided password if available
1517
+ my ($try, $key);
1518
+ for ($try=0; ; ++$try) {
1519
+ my $password;
1520
+ if ($try == 0) {
1521
+ $password = '';
1522
+ } elsif ($try == 1) {
1523
+ $password = $et->Options('Password');
1524
+ return 'Document is password protected (use Password option)' unless defined $password;
1525
+ # make sure there is no UTF-8 flag on the password
1526
+ if ($] >= 5.006 and (eval { require Encode; Encode::is_utf8($password) } or $@)) {
1527
+ # repack by hand if Encode isn't available
1528
+ $password = $@ ? pack('C*',unpack($] < 5.010000 ? 'U0C*' : 'C0C*',$password)) : Encode::encode('utf8',$password);
1529
+ }
1530
+ } else {
1531
+ return 'Incorrect password';
1532
+ }
1533
+ if ($ver < 5) {
1534
+ if (length $password) {
1535
+ # password must be encoding in PDFDocEncoding (ref iso32000)
1536
+ $password = $et->Encode($password, 'PDFDoc');
1537
+ # truncate or pad the password to exactly 32 bytes
1538
+ if (length($password) > 32) {
1539
+ $password = substr($password, 0, 32);
1540
+ } elsif (length($password) < 32) {
1541
+ $password .= substr($pad, 0, 32-length($password));
1542
+ }
1543
+ } else {
1544
+ $password = $pad;
1545
+ }
1546
+ $key = $password . $o . pack('V', $$encrypt{P}) . $id;
1547
+ my $rep = 1;
1548
+ if ($rev == 3 or $rev == 4) {
1549
+ # must add this if metadata not encrypted
1550
+ $key .= "\xff\xff\xff\xff" unless $$encrypt{_meta};
1551
+ $rep += 50; # repeat MD5 50 more times if revision is 3 or greater
1552
+ }
1553
+ my ($len, $i, $dat);
1554
+ if ($ver == 1) {
1555
+ $len = 5;
1556
+ } else {
1557
+ $len = $$encrypt{Length} || 40;
1558
+ $len >= 40 or return 'Bad Encrypt Length';
1559
+ $len = int($len / 8);
1560
+ }
1561
+ for ($i=0; $i<$rep; ++$i) {
1562
+ $key = substr(Digest::MD5::md5($key), 0, $len);
1563
+ }
1564
+ # decrypt U to see if a user password is required
1565
+ if ($rev >= 3) {
1566
+ $dat = Digest::MD5::md5($pad . $id);
1567
+ RC4Crypt(\$dat, $key);
1568
+ for ($i=1; $i<=19; ++$i) {
1569
+ my @key = unpack('C*', $key);
1570
+ foreach (@key) { $_ ^= $i; }
1571
+ RC4Crypt(\$dat, pack('C*', @key));
1572
+ }
1573
+ $dat .= substr($u, 16);
1574
+ } else {
1575
+ $dat = $pad;
1576
+ RC4Crypt(\$dat, $key);
1577
+ }
1578
+ last if $dat eq $u; # all done if this was the correct key
1579
+ } else {
1580
+ return 'Invalid O or U Encrypt entries' if length($o) < 48 or length($u) < 48;
1581
+ if (length $password) {
1582
+ # Note: this should be good for passwords containing reasonable characters,
1583
+ # but to be bullet-proof we need to apply the SASLprep (IETF RFC 4013) profile
1584
+ # of stringprep (IETF RFC 3454) to the password before encoding in UTF-8
1585
+ $password = $et->Encode($password, 'UTF8');
1586
+ $password = substr($password, 0, 127) if length($password) > 127;
1587
+ }
1588
+ # test for the owner password
1589
+ my $sha = GetHash($password, substr($o,32,8), substr($u,0,48), $rev);
1590
+ if ($sha eq substr($o, 0, 32)) {
1591
+ $key = GetHash($password, substr($o,40,8), substr($u,0,48), $rev);
1592
+ my $dat = ("\0" x 16) . $parm{OE};
1593
+ # decrypt with no padding
1594
+ my $err = Image::ExifTool::AES::Crypt(\$dat, $key, 0, 1);
1595
+ return $err if $err;
1596
+ $key = $dat; # use this as the file decryption key
1597
+ last;
1598
+ }
1599
+ # test for the user password
1600
+ $sha = GetHash($password, substr($u,32,8), '', $rev);
1601
+ if ($sha eq substr($u, 0, 32)) {
1602
+ $key = GetHash($password, substr($u,40,8), '', $rev);
1603
+ my $dat = ("\0" x 16) . $parm{UE};
1604
+ my $err = Image::ExifTool::AES::Crypt(\$dat, $key, 0, 1);
1605
+ return $err if $err;
1606
+ $key = $dat; # use this as the file decryption key
1607
+ last;
1608
+ }
1609
+ }
1610
+ }
1611
+ $$encrypt{_key} = $key; # save the file-level encryption key
1612
+ $cryptInfo = $encrypt; # save reference to the file-level Encrypt object
1613
+ return undef; # success!
1614
+ }
1615
+
1616
+ #------------------------------------------------------------------------------
1617
+ # Decrypt/Encrypt data
1618
+ # Inputs: 0) data ref
1619
+ # 1) PDF object reference to use as crypt key extension (may be 'none' to
1620
+ # avoid extending the encryption key, as for streams with Crypt Filter)
1621
+ # 2) encrypt flag (false for decryption)
1622
+ sub Crypt($$;$)
1623
+ {
1624
+ return unless $cryptInfo;
1625
+ my ($dataPt, $keyExt, $encrypt) = @_;
1626
+ # do not decrypt if the key extension object is undefined
1627
+ # (this doubles as a flag to disable decryption/encryption)
1628
+ return unless defined $keyExt;
1629
+ my $key = $$cryptInfo{_key};
1630
+ # apply the necessary crypt key extension
1631
+ unless ($$cryptInfo{_aesv3}) {
1632
+ unless ($keyExt eq 'none') {
1633
+ # extend crypt key using object and generation number
1634
+ unless ($keyExt =~ /^(I\d+ )?(\d+) (\d+)/) {
1635
+ $$cryptInfo{_error} = 'Invalid object reference for encryption';
1636
+ return;
1637
+ }
1638
+ $key .= substr(pack('V', $2), 0, 3) . substr(pack('V', $3), 0, 2);
1639
+ }
1640
+ # add AES-128 salt if necessary (this little gem is conveniently
1641
+ # omitted from the Adobe PDF 1.6 documentation, causing me to
1642
+ # waste 12 hours trying to figure out why this wasn't working --
1643
+ # it appears in ISO32000 though, so I should have been using that)
1644
+ $key .= 'sAlT' if $$cryptInfo{_aesv2};
1645
+ my $len = length($key);
1646
+ $key = Digest::MD5::md5($key); # get 16-byte MD5 digest
1647
+ $key = substr($key, 0, $len) if $len < 16; # trim if necessary
1648
+ }
1649
+ # perform the decryption/encryption
1650
+ if ($$cryptInfo{_aesv2} or $$cryptInfo{_aesv3}) {
1651
+ require Image::ExifTool::AES;
1652
+ my $err = Image::ExifTool::AES::Crypt($dataPt, $key, $encrypt);
1653
+ $err and $$cryptInfo{_error} = $err;
1654
+ } else {
1655
+ RC4Crypt($dataPt, $key);
1656
+ }
1657
+ }
1658
+
1659
+ #------------------------------------------------------------------------------
1660
+ # Decrypt/Encrypt stream data
1661
+ # Inputs: 0) dictionary ref, 1) PDF object reference to use as crypt key extension
1662
+ sub CryptStream($$)
1663
+ {
1664
+ return unless $cryptStream;
1665
+ my ($dict, $keyExt) = @_;
1666
+ my $type = $$dict{Type} || '';
1667
+ # XRef streams are not encrypted (ref 3, page 50),
1668
+ # and Metadata may or may not be encrypted
1669
+ if ($cryptInfo and $type ne '/XRef' and
1670
+ ($$cryptInfo{_meta} or $type ne '/Metadata'))
1671
+ {
1672
+ Crypt(\$$dict{_stream}, $keyExt, $$dict{_decrypted});
1673
+ # toggle _decrypted flag
1674
+ $$dict{_decrypted} = ($$dict{_decrypted} ? undef : 1);
1675
+ } else {
1676
+ $$dict{_decrypted} = 0; # stream should never be encrypted
1677
+ }
1678
+ }
1679
+
1680
+ #------------------------------------------------------------------------------
1681
+ # Generate a new PDF tag (based on its ID) and add it to a tag table
1682
+ # Inputs: 0) tag table ref, 1) tag ID
1683
+ # Returns: tag info ref
1684
+ sub NewPDFTag($$)
1685
+ {
1686
+ my ($tagTablePtr, $tag) = @_;
1687
+ my $name = $tag;
1688
+ # translate URL-like escape sequences
1689
+ $name =~ s/#([0-9a-f]{2})/chr(hex($1))/ige;
1690
+ $name =~ s/[^-\w]+/_/g; # translate invalid characters to an underline
1691
+ $name =~ s/(^|_)([a-z])/\U$2/g; # start words with upper case
1692
+ my $tagInfo = { Name => $name };
1693
+ AddTagToTable($tagTablePtr, $tag, $tagInfo);
1694
+ return $tagInfo;
1695
+ }
1696
+
1697
+ #------------------------------------------------------------------------------
1698
+ # Process AcroForm dictionary to set HasXMLFormsArchitecture flag
1699
+ # Inputs: Same as ProcessDict
1700
+ sub ProcessAcroForm($$$$;$$)
1701
+ {
1702
+ my ($et, $tagTablePtr, $dict, $xref, $nesting, $type) = @_;
1703
+ $et->HandleTag($tagTablePtr, '_has_xfa', $$dict{XFA} ? 'true' : 'false');
1704
+ return ProcessDict($et, $tagTablePtr, $dict, $xref, $nesting, $type);
1705
+ }
1706
+
1707
+ #------------------------------------------------------------------------------
1708
+ # Expand array into a string
1709
+ # Inputs: 0) array ref
1710
+ # Return: string
1711
+ sub ExpandArray($)
1712
+ {
1713
+ my $val = shift;
1714
+ my @list = @$val;
1715
+ foreach (@list) {
1716
+ ref $_ eq 'SCALAR' and $_ = "ref($$_)", next;
1717
+ ref $_ eq 'ARRAY' and $_ = ExpandArray($_), next;
1718
+ defined $_ or $_ = '<undef>', next;
1719
+ }
1720
+ return '[' . join(',',@list) . ']';
1721
+ }
1722
+
1723
+ #------------------------------------------------------------------------------
1724
+ # Process PDF dictionary extract tag values
1725
+ # Inputs: 0) ExifTool object reference, 1) tag table reference
1726
+ # 2) dictionary reference, 3) cross-reference table reference,
1727
+ # 4) nesting depth, 5) dictionary capture type
1728
+ sub ProcessDict($$$$;$$)
1729
+ {
1730
+ my ($et, $tagTablePtr, $dict, $xref, $nesting, $type) = @_;
1731
+ my $verbose = $et->Options('Verbose');
1732
+ my $unknown = $$tagTablePtr{EXTRACT_UNKNOWN};
1733
+ my $embedded = (defined $unknown and not $unknown and $et->Options('ExtractEmbedded'));
1734
+ my @tags = @{$$dict{_tags}};
1735
+ my ($next, %join);
1736
+ my $index = 0;
1737
+
1738
+ $nesting = ($nesting || 0) + 1;
1739
+ if ($nesting > 50) {
1740
+ $et->WarnOnce('Nesting too deep (directory ignored)');
1741
+ return;
1742
+ }
1743
+ # save entire dictionary for rewriting if specified
1744
+ if ($$et{PDF_CAPTURE} and $$tagTablePtr{VARS} and
1745
+ $tagTablePtr->{VARS}->{CAPTURE})
1746
+ {
1747
+ my $name;
1748
+ foreach $name (@{$tagTablePtr->{VARS}->{CAPTURE}}) {
1749
+ next if $$et{PDF_CAPTURE}{$name};
1750
+ # make sure we load the right type if indicated
1751
+ next if $type and $type ne $name;
1752
+ $$et{PDF_CAPTURE}{$name} = $dict;
1753
+ last;
1754
+ }
1755
+ }
1756
+ #
1757
+ # extract information from all tags in the dictionary
1758
+ #
1759
+ for (;;) {
1760
+ my ($tag, $isSubDoc);
1761
+ if (@tags) {
1762
+ $tag = shift @tags;
1763
+ } elsif (defined $next and not $next) {
1764
+ $tag = 'Next';
1765
+ $next = 1;
1766
+ } else {
1767
+ last;
1768
+ }
1769
+ my $val = $$dict{$tag};
1770
+ my $tagInfo = $et->GetTagInfo($tagTablePtr, $tag);
1771
+ if ($tagInfo) {
1772
+ undef $tagInfo if $$tagInfo{NoProcess};
1773
+ } elsif ($embedded and $tag =~ /^(.*?)(\d+)$/ and
1774
+ $$tagTablePtr{$1} and (ref $val ne 'SCALAR' or not $fetched{$$val}))
1775
+ {
1776
+ my ($name, $num) = ($1, $2);
1777
+ $tagInfo = $et->GetTagInfo($tagTablePtr, $name);
1778
+ if (ref $tagInfo eq 'HASH' and $$tagInfo{JoinStreams}) {
1779
+ $fetched{$$val} = 1;
1780
+ my $obj = FetchObject($et, $$val, $xref, $tag);
1781
+ $join{$name} = [] unless $join{$name};
1782
+ next unless ref $obj eq 'HASH' and $$obj{_stream};
1783
+ # save all the stream data to join later
1784
+ DecodeStream($et, $obj);
1785
+ $join{$name}->[$num] = $$obj{_stream};
1786
+ undef $tagInfo; # don't process
1787
+ } else {
1788
+ $isSubDoc = 1; # treat as a sub-document
1789
+ }
1790
+ }
1791
+ if ($verbose) {
1792
+ my ($val2, $extra);
1793
+ if (ref $val eq 'SCALAR') {
1794
+ $extra = ", indirect object ($$val)";
1795
+ if ($fetched{$$val}) {
1796
+ $val2 = "ref($$val)";
1797
+ } elsif ($tag eq 'Next' and not $next) {
1798
+ # handle 'Next' links after all others
1799
+ $next = 0;
1800
+ next;
1801
+ } else {
1802
+ $fetched{$$val} = 1;
1803
+ $val = FetchObject($et, $$val, $xref, $tag);
1804
+ unless (defined $val) {
1805
+ my $str;
1806
+ if (defined $lastOffset) {
1807
+ $val2 = '<free>';
1808
+ $str = 'Object was freed';
1809
+ } else {
1810
+ $val2 = '<err>';
1811
+ $str = 'Error reading object';
1812
+ }
1813
+ $et->VPrint(0, "$$et{INDENT}${str}:\n");
1814
+ }
1815
+ }
1816
+ } elsif (ref $val eq 'HASH') {
1817
+ $extra = ', direct dictionary';
1818
+ } elsif (ref $val eq 'ARRAY') {
1819
+ $extra = ', direct array of ' . scalar(@$val) . ' objects';
1820
+ } else {
1821
+ $extra = ', direct object';
1822
+ }
1823
+ my $isSubdir;
1824
+ if (ref $val eq 'HASH') {
1825
+ $isSubdir = 1;
1826
+ } elsif (ref $val eq 'ARRAY') {
1827
+ # recurse into objects in arrays only if they are lists of
1828
+ # dictionaries or indirect objects which could be dictionaries
1829
+ $isSubdir = 1 if @$val;
1830
+ foreach (@$val) {
1831
+ next if ref $_ eq 'HASH' or ref $_ eq 'SCALAR';
1832
+ undef $isSubdir;
1833
+ last;
1834
+ }
1835
+ }
1836
+ if ($isSubdir) {
1837
+ # create bogus subdirectory to recurse into this dict
1838
+ $tagInfo or $tagInfo = {
1839
+ Name => $tag,
1840
+ SubDirectory => { TagTable => 'Image::ExifTool::PDF::Unknown' },
1841
+ };
1842
+ } else {
1843
+ $val2 = ExpandArray($val) if ref $val eq 'ARRAY';
1844
+ # generate tag info if we will use it later
1845
+ if (not $tagInfo and defined $val and $unknown) {
1846
+ $tagInfo = NewPDFTag($tagTablePtr, $tag);
1847
+ }
1848
+ }
1849
+ $et->VerboseInfo($tag, $tagInfo,
1850
+ Value => $val2 || $val,
1851
+ Extra => $extra,
1852
+ Index => $index++,
1853
+ );
1854
+ next unless defined $val;
1855
+ }
1856
+ unless ($tagInfo) {
1857
+ # add any tag found in Info dictionary to table
1858
+ next unless $unknown;
1859
+ $tagInfo = NewPDFTag($tagTablePtr, $tag);
1860
+ }
1861
+ # increment document number if necessary
1862
+ my ($oldDocNum, $oldNumTags);
1863
+ if ($isSubDoc) {
1864
+ $oldDocNum = $$et{DOC_NUM};
1865
+ $oldNumTags = $$et{NUM_FOUND};
1866
+ $$et{DOC_NUM} = ++$$et{DOC_COUNT};
1867
+ }
1868
+ if ($$tagInfo{SubDirectory}) {
1869
+ # process the subdirectory
1870
+ my @subDicts;
1871
+ if (ref $val eq 'ARRAY') {
1872
+ @subDicts = @{$val};
1873
+ } else {
1874
+ @subDicts = ( $val );
1875
+ }
1876
+ # loop through all values of this tag
1877
+ for (;;) {
1878
+ my $subDict = shift @subDicts or last;
1879
+ # save last fetched object in case we fetch another one here
1880
+ my $prevFetched = $lastFetched;
1881
+ if (ref $subDict eq 'SCALAR') {
1882
+ # only fetch once (other copies are obsolete)
1883
+ next if $fetched{$$subDict};
1884
+ if ($$tagInfo{IgnoreDuplicates}) {
1885
+ my $flag = "ProcessedPDF_$tag";
1886
+ if ($$et{$flag}) {
1887
+ next if $et->WarnOnce("Ignored duplicate $tag dictionary", 2);
1888
+ } else {
1889
+ $$et{$flag} = 1;
1890
+ }
1891
+ }
1892
+ # load dictionary via an indirect reference
1893
+ $fetched{$$subDict} = 1;
1894
+ my $obj = FetchObject($et, $$subDict, $xref, $tag);
1895
+ unless (defined $obj) {
1896
+ unless (defined $lastOffset) {
1897
+ $et->Warn("Error reading $tag object ($$subDict)");
1898
+ }
1899
+ next;
1900
+ }
1901
+ $subDict = $obj;
1902
+ }
1903
+ if (ref $subDict eq 'ARRAY') {
1904
+ # convert array of key/value pairs to a hash
1905
+ next if @$subDict < 2;
1906
+ my %hash = ( _tags => [] );
1907
+ while (@$subDict >= 2) {
1908
+ my $key = shift @$subDict;
1909
+ $key =~ s/^\///;
1910
+ push @{$hash{_tags}}, $key;
1911
+ $hash{$key} = shift @$subDict;
1912
+ }
1913
+ $subDict = \%hash;
1914
+ } else {
1915
+ next unless ref $subDict eq 'HASH';
1916
+ }
1917
+ # set flag to re-crypt all strings when rewriting if the dictionary
1918
+ # came from an encrypted stream
1919
+ $$subDict{_needCrypt}{'*'} = 1 unless $lastFetched;
1920
+ my $subTablePtr = GetTagTable($tagInfo->{SubDirectory}->{TagTable});
1921
+ if (not $verbose) {
1922
+ my $proc = $$subTablePtr{PROCESS_PROC} || \&ProcessDict;
1923
+ &$proc($et, $subTablePtr, $subDict, $xref, $nesting);
1924
+ } elsif ($next) {
1925
+ # handle 'Next' links at this level to avoid deep recursion
1926
+ undef $next;
1927
+ $index = 0;
1928
+ $tagTablePtr = $subTablePtr;
1929
+ $dict = $subDict;
1930
+ @tags = @{$$subDict{_tags}};
1931
+ $et->VerboseDir($tag, scalar(@tags));
1932
+ } else {
1933
+ my $oldIndent = $$et{INDENT};
1934
+ my $oldDir = $$et{DIR_NAME};
1935
+ $$et{INDENT} .= '| ';
1936
+ $$et{DIR_NAME} = $tag;
1937
+ $et->VerboseDir($tag, scalar(@{$$subDict{_tags}}));
1938
+ ProcessDict($et, $subTablePtr, $subDict, $xref, $nesting);
1939
+ $$et{INDENT} = $oldIndent;
1940
+ $$et{DIR_NAME} = $oldDir;
1941
+ }
1942
+ $lastFetched = $prevFetched;
1943
+ }
1944
+ } else {
1945
+ # fetch object if necessary
1946
+ # (OS X 10.6 writes indirect objects in the Info dictionary!)
1947
+ if (ref $val eq 'SCALAR') {
1948
+ my $prevFetched = $lastFetched;
1949
+ # (note: fetching the same object multiple times is OK here)
1950
+ $val = FetchObject($et, $$val, $xref, $tag);
1951
+ if (defined $val) {
1952
+ $val = ReadPDFValue($val);
1953
+ # set flag to re-encrypt if necessary if rewritten
1954
+ $$dict{_needCrypt}{$tag} = ($lastFetched ? 0 : 1) if $cryptString;
1955
+ $lastFetched = $prevFetched; # restore last fetched object reference
1956
+ }
1957
+ } else {
1958
+ $val = ReadPDFValue($val);
1959
+ }
1960
+ # convert from UTF-16 (big endian) to UTF-8 or Latin if necessary
1961
+ # unless this is binary data (hex-encoded strings would not have been converted)
1962
+ if (ref $val) {
1963
+ if (ref $val eq 'ARRAY') {
1964
+ my $v;
1965
+ foreach $v (@$val) {
1966
+ $et->FoundTag($tagInfo, $v);
1967
+ }
1968
+ }
1969
+ } elsif (defined $val) {
1970
+ my $format = $$tagInfo{Format} || $$tagInfo{Writable} || 'string';
1971
+ $val = ConvertPDFDate($val) if $format eq 'date';
1972
+ if (not $$tagInfo{Binary} and $val =~ /[\x18-\x1f\x80-\xff]/) {
1973
+ # text string is already in Unicode if it starts with "\xfe\xff",
1974
+ # otherwise we must first convert from PDFDocEncoding
1975
+ $val = $et->Decode($val, ($val=~s/^\xfe\xff// ? 'UCS2' : 'PDFDoc'), 'MM');
1976
+ }
1977
+ if ($$tagInfo{List} and not $$et{OPTIONS}{NoPDFList}) {
1978
+ # separate tokens in comma or whitespace delimited lists
1979
+ my @values = ($val =~ /,/) ? split /,+\s*/, $val : split ' ', $val;
1980
+ foreach $val (@values) {
1981
+ $et->FoundTag($tagInfo, $val);
1982
+ }
1983
+ } else {
1984
+ # a simple tag value
1985
+ $et->FoundTag($tagInfo, $val);
1986
+ }
1987
+ }
1988
+ }
1989
+ if ($isSubDoc) {
1990
+ # restore original document number
1991
+ $$et{DOC_NUM} = $oldDocNum;
1992
+ --$$et{DOC_COUNT} if $oldNumTags == $$et{NUM_FOUND};
1993
+ }
1994
+ }
1995
+ #
1996
+ # extract information from joined streams if necessary
1997
+ #
1998
+
1999
+ if (%join) {
2000
+ my ($tag, $i);
2001
+ foreach $tag (sort keys %join) {
2002
+ my $list = $join{$tag};
2003
+ last unless defined $$list[1] and $$list[1] =~ /^%.*?([\x0d\x0a]*)/;
2004
+ my $buff = "%!PS-Adobe-3.0$1"; # add PS header with same line break
2005
+ for ($i=1; defined $$list[$i]; ++$i) {
2006
+ $buff .= $$list[$i];
2007
+ undef $$list[$i]; # free memory
2008
+ }
2009
+ # increment document number for tags extracted from embedded EPS
2010
+ my $oldDocNum = $$et{DOC_NUM};
2011
+ my $oldNumTags = $$et{NUM_FOUND};
2012
+ $$et{DOC_NUM} = ++$$et{DOC_COUNT};
2013
+ # extract PostScript information
2014
+ $et->HandleTag($tagTablePtr, $tag, $buff);
2015
+ $$et{DOC_NUM} = $oldDocNum;
2016
+ # revert document counter if we didn't add any new tags
2017
+ --$$et{DOC_COUNT} if $oldNumTags == $$et{NUM_FOUND};
2018
+ delete $$et{DOC_NUM};
2019
+ }
2020
+ }
2021
+ #
2022
+ # extract information from stream object if it exists (eg. Metadata stream)
2023
+ #
2024
+ for (;;) { # (cheap goto)
2025
+ last unless $$dict{_stream};
2026
+ my $tag = '_stream';
2027
+ # add Subtype (if it exists) to stream name and remove leading '/'
2028
+ ($tag = $$dict{Subtype} . $tag) =~ s/^\/// if $$dict{Subtype};
2029
+ last unless $$tagTablePtr{$tag};
2030
+ my $tagInfo = $et->GetTagInfo($tagTablePtr, $tag) or last;
2031
+ unless ($$tagInfo{SubDirectory}) {
2032
+ # don't build filter lists across different images
2033
+ delete $$et{LIST_TAGS}{$$tagTablePtr{Filter}};
2034
+ # we arrive here only when extracting embedded images
2035
+ # - only extract known image types and ignore others
2036
+ my $filter = $$dict{Filter} || '';
2037
+ $filter = @$filter[-1] if ref $filter eq 'ARRAY'; # (get last Filter type)
2038
+ my $result;
2039
+ if ($filter eq '/DCTDecode' or $filter eq '/JPXDecode') {
2040
+ DecodeStream($et, $dict) or last;
2041
+ # save the image itself
2042
+ $et->FoundTag($tagInfo, \$$dict{_stream});
2043
+ # extract information from embedded image
2044
+ $result = $et->ExtractInfo(\$$dict{_stream}, { ReEntry => 1 });
2045
+ }
2046
+ unless ($result) {
2047
+ $et->FoundTag('FileType', defined $result ? '(unknown)' : '(unsupported)');
2048
+ }
2049
+ last;
2050
+ }
2051
+ # decode stream if necessary
2052
+ DecodeStream($et, $dict) or last;
2053
+ if ($verbose > 2) {
2054
+ $et->VPrint(2,"$$et{INDENT}$$et{DIR_NAME} stream data\n");
2055
+ my %parms = ( Prefix => $$et{INDENT} );
2056
+ $parms{MaxLen} = $verbose > 3 ? 1024 : 96 if $verbose < 5;
2057
+ HexDump(\$$dict{_stream}, undef, %parms);
2058
+ }
2059
+ # extract information from stream
2060
+ my %dirInfo = (
2061
+ DataPt => \$$dict{_stream},
2062
+ DataLen => length $$dict{_stream},
2063
+ DirStart => 0,
2064
+ DirLen => length $$dict{_stream},
2065
+ Parent => 'PDF',
2066
+ );
2067
+ my $subTablePtr = GetTagTable($tagInfo->{SubDirectory}->{TagTable});
2068
+ unless ($et->ProcessDirectory(\%dirInfo, $subTablePtr)) {
2069
+ $et->Warn("Error processing $$tagInfo{Name} information");
2070
+ }
2071
+ last;
2072
+ }
2073
+ }
2074
+
2075
+ #------------------------------------------------------------------------------
2076
+ # Extract information from PDF file
2077
+ # Inputs: 0) ExifTool object reference, 1) dirInfo reference
2078
+ # Returns: 0 if not a PDF file, 1 on success, otherwise a negative error number
2079
+ sub ReadPDF($$)
2080
+ {
2081
+ my ($et, $dirInfo) = @_;
2082
+ my $raf = $$dirInfo{RAF};
2083
+ my $verbose = $et->Options('Verbose');
2084
+ my ($buff, $encrypt, $id);
2085
+ #
2086
+ # validate PDF file
2087
+ #
2088
+ # (linearization dictionary must be in the first 1024 bytes of the file)
2089
+ $raf->Read($buff, 1024) >= 8 or return 0;
2090
+ $buff =~ /^%PDF-(\d+\.\d+)/ or return 0;
2091
+ $pdfVer = $1;
2092
+ $et->SetFileType(); # set the FileType tag
2093
+ $et->Warn("May not be able to read a PDF version $pdfVer file") if $pdfVer >= 2.0;
2094
+ # store PDFVersion tag
2095
+ my $tagTablePtr = GetTagTable('Image::ExifTool::PDF::Root');
2096
+ $et->HandleTag($tagTablePtr, 'Version', $pdfVer);
2097
+ $tagTablePtr = GetTagTable('Image::ExifTool::PDF::Main');
2098
+ #
2099
+ # check for a linearized PDF (only if reading)
2100
+ #
2101
+ my $capture = $$et{PDF_CAPTURE};
2102
+ unless ($capture) {
2103
+ my $lin = 'false';
2104
+ if ($buff =~ /<</g) {
2105
+ $buff = substr($buff, pos($buff) - 2);
2106
+ my $dict = ExtractObject($et, \$buff);
2107
+ if (ref $dict eq 'HASH' and $$dict{Linearized} and $$dict{L}) {
2108
+ if (not $$et{VALUE}{FileSize}) {
2109
+ undef $lin; # can't determine if it is linearized
2110
+ } elsif ($$dict{L} == $$et{VALUE}{FileSize}) {
2111
+ $lin = 'true';
2112
+ }
2113
+ }
2114
+ }
2115
+ $et->HandleTag($tagTablePtr, '_linearized', $lin) if $lin;
2116
+ }
2117
+ #
2118
+ # read the xref tables referenced from startxref at the end of the file
2119
+ #
2120
+ my @xrefOffsets;
2121
+ $raf->Seek(0, 2) or return -2;
2122
+ # the %%EOF must occur within the last 1024 bytes of the file (PDF spec, appendix H)
2123
+ my $len = $raf->Tell();
2124
+ $len = 1024 if $len > 1024;
2125
+ $raf->Seek(-$len, 2) or return -2;
2126
+ $raf->Read($buff, $len) == $len or return -3;
2127
+ # find the LAST xref table in the file (may be multiple %%EOF marks,
2128
+ # and comments between "startxref" and "%%EOF")
2129
+ $buff =~ /^.*startxref(\s+)(\d+)(\s+)(%[^\x0d\x0a]*\s+)*%%EOF/s or return -4;
2130
+ my $ws = $1 . $3;
2131
+ my $xr = $2;
2132
+ push @xrefOffsets, $xr, 'Main';
2133
+ # set input record separator
2134
+ local $/ = $ws =~ /(\x0d\x0a|\x0d|\x0a)/ ? $1 : "\x0a";
2135
+ my (%xref, @mainDicts, %loaded, $mainFree);
2136
+ # initialize variables to capture when rewriting
2137
+ if ($capture) {
2138
+ $capture->{startxref} = $xr;
2139
+ $capture->{xref} = \%xref;
2140
+ $capture->{newline} = $/;
2141
+ $capture->{mainFree} = $mainFree = { };
2142
+ }
2143
+ XRef:
2144
+ while (@xrefOffsets) {
2145
+ my $offset = shift @xrefOffsets;
2146
+ my $type = shift @xrefOffsets;
2147
+ next if $loaded{$offset}; # avoid infinite recursion
2148
+ unless ($raf->Seek($offset, 0)) {
2149
+ %loaded or return -5;
2150
+ $et->Warn('Bad offset for secondary xref table');
2151
+ next;
2152
+ }
2153
+ # Note: care must be taken because ReadLine may read more than we want if
2154
+ # the newline sequence for this table is different than the rest of the file
2155
+ for (;;) {
2156
+ unless ($raf->ReadLine($buff)) {
2157
+ %loaded or return -6;
2158
+ $et->Warn('Bad offset for secondary xref table');
2159
+ next XRef;
2160
+ }
2161
+ last if $buff =~/\S/; # skip blank lines
2162
+ }
2163
+ my $loadXRefStream;
2164
+ if ($buff =~ s/^\s*xref\s+//s) {
2165
+ # load xref table
2166
+ for (;;) {
2167
+ # read another line if necessary (skipping blank lines)
2168
+ $raf->ReadLine($buff) or return -6 until $buff =~ /\S/;
2169
+ last if $buff =~ s/^\s*trailer([\s<[(])/$1/s;
2170
+ $buff =~ s/^\s*(\d+)\s+(\d+)\s+//s or return -4;
2171
+ my ($start, $num) = ($1, $2);
2172
+ $raf->Seek(-length($buff), 1) or return -4;
2173
+ my $i;
2174
+ for ($i=0; $i<$num; ++$i) {
2175
+ $raf->Read($buff, 20) == 20 or return -6;
2176
+ $buff =~ /^\s*(\d{10}) (\d{5}) (f|n)/s or return -4;
2177
+ my $num = $start + $i;
2178
+ # save offset for newest copy of all objects
2179
+ # (or next object number for free objects)
2180
+ unless (defined $xref{$num}) {
2181
+ my ($offset, $gen) = (int($1), int($2));
2182
+ $xref{$num} = $offset;
2183
+ if ($3 eq 'f') {
2184
+ # save free objects in last xref table for rewriting
2185
+ $$mainFree{$num} = [ $offset, $gen, 'f' ] if $mainFree;
2186
+ next;
2187
+ }
2188
+ # also save offset keyed by object reference string
2189
+ $xref{"$num $gen R"} = $offset;
2190
+ }
2191
+ }
2192
+ # (I have a sample from Adobe which has an empty xref table)
2193
+ # %xref or return -4; # xref table may not be empty
2194
+ $buff = '';
2195
+ }
2196
+ undef $mainFree; # only do this for the last xref table
2197
+ } elsif ($buff =~ s/^\s*(\d+)\s+(\d+)\s+obj//s) {
2198
+ # this is a PDF-1.5 cross-reference stream dictionary
2199
+ $loadXRefStream = 1;
2200
+ } else {
2201
+ %loaded or return -4;
2202
+ $et->Warn('Invalid secondary xref table');
2203
+ next;
2204
+ }
2205
+ my $mainDict = ExtractObject($et, \$buff, $raf, \%xref);
2206
+ unless (ref $mainDict eq 'HASH') {
2207
+ %loaded or return -8;
2208
+ $et->Warn('Error loading secondary dictionary');
2209
+ next;
2210
+ }
2211
+ if ($loadXRefStream) {
2212
+ # decode and save our XRef stream from PDF-1.5 file
2213
+ # (but parse it later as required to save time)
2214
+ # Note: this technique can potentially result in an old object
2215
+ # being used if the file was incrementally updated and an older
2216
+ # object from an xref table was replaced by a newer object in an
2217
+ # xref stream. But doing so isn't a good idea (if allowed at all)
2218
+ # because a PDF 1.4 consumer would also make this same mistake.
2219
+ if ($$mainDict{Type} eq '/XRef' and $$mainDict{W} and
2220
+ @{$$mainDict{W}} > 2 and $$mainDict{Size} and
2221
+ DecodeStream($et, $mainDict))
2222
+ {
2223
+ # create Index entry if it doesn't exist
2224
+ $$mainDict{Index} or $$mainDict{Index} = [ 0, $$mainDict{Size} ];
2225
+ # create '_entry_size' entry for internal use
2226
+ my $w = $$mainDict{W};
2227
+ my $size = 0;
2228
+ foreach (@$w) { $size += $_; }
2229
+ $$mainDict{_entry_size} = $size;
2230
+ # save this stream dictionary to use later if required
2231
+ $xref{dicts} = [] unless $xref{dicts};
2232
+ push @{$xref{dicts}}, $mainDict;
2233
+ } else {
2234
+ %loaded or return -9;
2235
+ $et->Warn('Invalid xref stream in secondary dictionary');
2236
+ }
2237
+ }
2238
+ $loaded{$offset} = 1;
2239
+ # load XRef stream in hybrid file if it exists
2240
+ push @xrefOffsets, $$mainDict{XRefStm}, 'XRefStm' if $$mainDict{XRefStm};
2241
+ $encrypt = $$mainDict{Encrypt} if $$mainDict{Encrypt};
2242
+ if ($$mainDict{ID} and ref $$mainDict{ID} eq 'ARRAY') {
2243
+ $id = ReadPDFValue($mainDict->{ID}->[0]);
2244
+ }
2245
+ push @mainDicts, $mainDict, $type;
2246
+ # load previous xref table if it exists
2247
+ push @xrefOffsets, $$mainDict{Prev}, 'Prev' if $$mainDict{Prev};
2248
+ }
2249
+ #
2250
+ # extract encryption information if necessary
2251
+ #
2252
+ if ($encrypt) {
2253
+ if (ref $encrypt eq 'SCALAR') {
2254
+ $encrypt = FetchObject($et, $$encrypt, \%xref, 'Encrypt');
2255
+ }
2256
+ # generate Encryption tag information
2257
+ my $err = DecryptInit($et, $encrypt, $id);
2258
+ if ($err) {
2259
+ $et->Warn($err);
2260
+ $$capture{Error} = $err if $capture;
2261
+ return -1;
2262
+ }
2263
+ }
2264
+ #
2265
+ # extract the information beginning with each of the main dictionaries
2266
+ #
2267
+ my $i = 0;
2268
+ my $num = (scalar @mainDicts) / 2;
2269
+ while (@mainDicts) {
2270
+ my $dict = shift @mainDicts;
2271
+ my $type = shift @mainDicts;
2272
+ if ($verbose) {
2273
+ ++$i;
2274
+ my $n = scalar(@{$$dict{_tags}});
2275
+ $et->VPrint(0, "PDF dictionary ($i of $num) with $n entries:\n");
2276
+ }
2277
+ ProcessDict($et, $tagTablePtr, $dict, \%xref, 0, $type);
2278
+ }
2279
+ # handle any decryption errors
2280
+ if ($encrypt) {
2281
+ my $err = $$encrypt{_error};
2282
+ if ($err) {
2283
+ $et->Warn($err);
2284
+ $$capture{Error} = $err if $capture;
2285
+ return -1;
2286
+ }
2287
+ }
2288
+ return 1;
2289
+ }
2290
+
2291
+ #------------------------------------------------------------------------------
2292
+ # ReadPDF() warning strings for each error return value
2293
+ my %pdfWarning = (
2294
+ # -1 is reserved as error return value with no associated warning
2295
+ -2 => 'Error seeking in file',
2296
+ -3 => 'Error reading file',
2297
+ -4 => 'Invalid xref table',
2298
+ -5 => 'Invalid xref offset',
2299
+ -6 => 'Error reading xref table',
2300
+ -7 => 'Error reading trailer',
2301
+ -8 => 'Error reading main dictionary',
2302
+ -9 => 'Invalid xref stream in main dictionary',
2303
+ );
2304
+
2305
+ #------------------------------------------------------------------------------
2306
+ # Extract information from PDF file
2307
+ # Inputs: 0) ExifTool object reference, 1) dirInfo reference
2308
+ # Returns: 1 if this was a valid PDF file
2309
+ sub ProcessPDF($$)
2310
+ {
2311
+ my ($et, $dirInfo) = @_;
2312
+
2313
+ undef $cryptInfo; # (must not delete after returning so writer can use it)
2314
+ undef $cryptStream;
2315
+ undef $cryptString;
2316
+ my $result = ReadPDF($et, $dirInfo);
2317
+ if ($result < 0) {
2318
+ $et->Warn($pdfWarning{$result}) if $pdfWarning{$result};
2319
+ $result = 1;
2320
+ }
2321
+ # clean up and return
2322
+ undef %streamObjs;
2323
+ undef %fetched;
2324
+ return $result;
2325
+ }
2326
+
2327
+ 1; # end
2328
+
2329
+
2330
+ __END__
2331
+
2332
+ =head1 NAME
2333
+
2334
+ Image::ExifTool::PDF - Read PDF meta information
2335
+
2336
+ =head1 SYNOPSIS
2337
+
2338
+ This module is loaded automatically by Image::ExifTool when required.
2339
+
2340
+ =head1 DESCRIPTION
2341
+
2342
+ This code reads meta information from PDF (Adobe Portable Document Format)
2343
+ files. It supports object streams introduced in PDF-1.5 but only with a
2344
+ limited set of Filter and Predictor algorithms, however all standard
2345
+ encryption methods through PDF-1.7 extension level 3 are supported,
2346
+ including AESV2 (AES-128) and AESV3 (AES-256).
2347
+
2348
+ =head1 AUTHOR
2349
+
2350
+ Copyright 2003-2017, Phil Harvey (phil at owl.phy.queensu.ca)
2351
+
2352
+ This library is free software; you can redistribute it and/or modify it
2353
+ under the same terms as Perl itself.
2354
+
2355
+ =head1 REFERENCES
2356
+
2357
+ =over 4
2358
+
2359
+ =item L<http://partners.adobe.com/public/developer/pdf/index_reference.html>
2360
+
2361
+ =item L<Crypt::RC4|Crypt::RC4>
2362
+
2363
+ =item L<http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf>
2364
+
2365
+ =item L<http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/adobe_supplement_iso32000.pdf>
2366
+
2367
+ =item L<http://tools.ietf.org/search/rfc3454>
2368
+
2369
+ =item L<http://www.armware.dk/RFC/rfc/rfc4013.html>
2370
+
2371
+ =back
2372
+
2373
+ =head1 SEE ALSO
2374
+
2375
+ L<Image::ExifTool::TagNames/PDF Tags>,
2376
+ L<Image::ExifTool(3pm)|Image::ExifTool>
2377
+
2378
+ =cut