Files
news.gitea.happylizard.me/bin/gems/pdf-reader-2.14.1/examples/metadata.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

15 lines
296 B
Ruby

#!/usr/bin/env ruby
# coding: utf-8
# Extract metadata only
require 'rubygems'
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