diff --git a/lib/asciidoctor-pdf/prawn_ext/images.rb b/lib/asciidoctor-pdf/prawn_ext/images.rb index 12cfd1a2b..380a05187 100644 --- a/lib/asciidoctor-pdf/prawn_ext/images.rb +++ b/lib/asciidoctor-pdf/prawn_ext/images.rb @@ -11,7 +11,8 @@ def extended base def image file, opts = {} # FIXME handle case when SVG is a File or IO object if ::String === file && (file.downcase.end_with? '.svg') - opts[:at] ||= bounds.top_left + opts[:position] ||= :left + opts[:vposition] ||= cursor opts[:fallback_font_name] ||= default_svg_font if respond_to? :default_svg_font svg (::IO.read file), opts else