module FN::PDF::Node::FitImage
Public Instance Methods
visit(struct, debug = false)
click to toggle source
# File lib/fn/pdf/node/fit_image.rb, line 13 def visit(struct, debug = false) has_no_children h = attributes.to_h img = struct[h.delete("image")] x = h.delete("x").to_i y = h.delete("y").to_i h["scale"] = 0.99 # if h["scale"] == "1.0" struct.fit_image(img, x, y, h) end