You are trying to convert a PDF that does not have OCR into a searchable PDF with ScanSnapiX500 software, but it is not recognized as a conversion target.
For reference to the article, Ruby's script converted the metadata "createortool" to "PFU ScanSnap Organizer 4.1.41#S1500", but "State: Not Applicable" as shown in the image below.How can I convert it?
Metadata Conversion Script
require 'rubygems'
require 'mini_exiftool'
# Rewrite the following two lines to fit your environment.
createortool="PFU ScanSnap Organizer 4.1.41#S1500"
path_to_pdf="/Users/kenkiti/Dropbox/Scan Document/**/*.pdf"
Dir.glob(path_to_pdf)do|f|
target=MiniExiftool.new(f)
if target ['CreatorTool']!=creatorTool
target ['CreatorTool'] = createortool
target.save
puts"#{f}=>#{target['CreatorTool']}"
end
end
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.
© 2024 OneMinuteCode. All rights reserved.