/usr/share/doc/ruby-pdf-reader/examples/metadata.rb is in ruby-pdf-reader 1.4.0-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/usr/bin/env ruby
# coding: utf-8
# Extract metadata only
require 'pdf/reader'
filename = File.expand_path(File.dirname(__FILE__)) + "/../spec/data/cross_ref_stream.pdf"
PDF::Reader.open(filename) do |reader|
puts reader.info.inspect
puts reader.metadata.inspect
end
|