Sha256: d8655a420709972ae6e206dea9b756ec2dfefc8f2d427d51c7efaf0371277421
Contents?: true
Size: 671 Bytes
Versions: 6
Compression:
Stored size: 671 Bytes
Contents
# # List Box # # This example shows how [HexaPDF::Layout::ListBox] can be used to place # contents into lists. # # The list box class provides several options to style the item marker # and its general appearance. # # Usage: # : `ruby list_box.rb` # require 'hexapdf' HexaPDF::Composer.create("list_box.pdf") do |composer| composer.list(content_indentation: 40, item_spacing: 20) do |list| list.lorem_ipsum list.image(File.join(__dir__, 'machupicchu.jpg'), height: 100) list.list(item_type: :decimal) do |sub_list| 1.upto(10) {|i| sub_list.text("Item #{i}") } end list.column do |column| column.lorem_ipsum(count: 3) end end end
Version data entries
6 entries across 6 versions & 1 rubygems