Sha256: 7e74abe4bd08c3072d3690c5dcc04909b1f4e601ba6c7d5674e8f35b61ab55f7
Contents?: true
Size: 427 Bytes
Versions: 7
Compression:
Stored size: 427 Bytes
Contents
#!/usr/bin/env ruby begin require 'origami' rescue LoadError $: << File.join(__dir__, "/../../lib") require 'origami' end include Origami # # Displays a message box when the document is opened. # OUTPUT_FILE = "#{File.basename(__FILE__, ".rb")}.pdf" # Creating a new file PDF.new .onDocumentOpen(Action::JavaScript 'app.alert("Hello world");') .save(OUTPUT_FILE) puts "PDF file saved as #{OUTPUT_FILE}."
Version data entries
7 entries across 7 versions & 2 rubygems