An XDF pdf element encloses a PDF packet.
# File lib/origami/xfa.rb, line 828 def enclose_pdf(pdfdata) require 'base64' b64data = Base64.encode64(pdfdata).chomp! doc = elements['document'] || add_element('document') chunk = doc.elements['chunk'] || doc.add_element('chunk') chunk.text = b64data self end
# File lib/origami/xfa.rb, line 850 def enclosed_pdf return nil unless has_enclosed_pdf? require 'base64' Base64.decode64(elements['document/chunk'].text) end
Generated with the Darkfish Rdoc Generator 2.