3
4
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/asposepdfjava/Document/getxmpmetadata.rb', line 3
def initialize()
data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
doc = Rjb::import('com.aspose.pdf.Document').new(data_dir + "input1.pdf")
puts "xmp:CreateDate: " + doc.getMetadata().get_Item("xmp:CreateDate").to_s
puts "xmp:Nickname: " + doc.getMetadata().get_Item("xmp:Nickname").to_s
puts "xmp:CustomProperty: " + doc.getMetadata().get_Item("xmp:CustomProperty").to_s
end
|