Sha256: 367551d9029ad4e60278c4cde79ee53342446b4a9c66f2631dcc9d5633944e43
Contents?: true
Size: 768 Bytes
Versions: 4
Compression:
Stored size: 768 Bytes
Contents
require File.dirname(__FILE__) + "/../../node/base" require "PDFlib" module FN module PDF module Node def FitTextflow(flow, block) FN::Node::Base("fit_textflow", :flow => "{#{flow && flow.flow_name}}", :x => block["x"], :y => block["y"], :x2 => block["x"].to_f + block["width"].to_f, :y2 => block["y"].to_f + block["height"].to_f ).extend(FitTextflow) end module FitTextflow include FN::Node::Base def visit(struct) has_no_children struct.fit_textflow struct[self["flow"]], self["x"].to_f, self["y"].to_f, self["x2"].to_f, self["y2"].to_f, "" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems