Ruby Script Translated PDF Metadata Not Recognized

Asked 2 years ago, Updated 2 years ago, 91 views

1 Answers

I don't have ScanSnap at hand, so I can't check it myself, but if you check the items in the file scanned by ScanSnap, you will know the item name to be set to createortool.
Check the item name below.

require 'mini_exiftool'

# Set the path of the scanned file in ScanSnap
path_to_pdf="/Users/**/*.pdf" 

Dir.glob(path_to_pdf)do|f|
  target=MiniExiftool.new(f)
  put target ['CreatorTool']
end

Set the item name to createortool in the original script.

If this doesn't work, the pdf file conditions that can be converted into a searchable PDF are different from those of the original article.Explore the conditions yourself.


2022-09-30 11:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.