Sha256: cfe2d72d2bbc98ce692b3162624bb9107d646c3f45058912b0c4b3d00ee7f7f5
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
module Asposepdfjava module GetXMPMetadata def initialize() # The path to the documents directory. data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Open a pdf document. doc = Rjb::import('com.aspose.pdf.Document').new(data_dir + "input1.pdf") # Get properties 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asposepdfjava-0.0.2 | lib/asposepdfjava/Document/getxmpmetadata.rb |
asposepdfjava-0.0.1 | lib/asposepdfjava/Document/getxmpmetadata.rb |