Sha256: e1a1d10ef288f246315549445266a9cbc9b58dd4f20926b349063d20290ad4c1
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
module Asposepdfjava module InsertEmptyPageAtEndOfFile def initialize() # The path to the documents directory. data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Open the target document pdf = Rjb::import('com.aspose.pdf.Document').new(data_dir + 'input1.pdf') # insert a empty page in a PDF pdf.getPages().add() # Save the concatenated output file (the target document) pdf.save(data_dir+ "output.pdf") puts "Empty page added successfully!" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asposepdfjava-0.0.2 | lib/asposepdfjava/Pages/insertemptypageatendoffile.rb |
asposepdfjava-0.0.1 | lib/asposepdfjava/Pages/insertemptypageatendoffile.rb |