lib/fn/pdf/writer.rb in fn_document-0.9.12 vs lib/fn/pdf/writer.rb in fn_document-0.9.13

- old
+ new

@@ -37,22 +37,18 @@ end def translate(doc, options = {}) raise "Not an FN Document" unless doc.is_a?(FN::Document) - file = options[:save_as] - bkg = options[:background] - pdf_version = options[:pdf_version] || - 1.5 - license = options[:license] - resource_file = options[:font_list] || - File.join(File.dirname(__FILE__), "pdflib.upr") - self.class.encoding = options[:encoding] || - "unicode" - textformat = options[:textformat] || "utf8" - root = options[:resource_root] || - "" - watermark = options[:watermark] + file = options[:save_as] + bkg = options[:background] + pdf_version = options[:pdf_version] || 1.5 + license = options[:license] + resource_file = options[:font_list] || File.join(File.dirname(__FILE__), "pdflib.upr") + self.class.encoding = options[:encoding] || "unicode" + textformat = options[:textformat] || "utf8" + root = options[:resource_root] || "" + watermark = options[:watermark] context = FN::Node::Context.new context.add SetParameter("license", license) context.add SetParameter("resourcefile", resource_file) \ No newline at end of file