RubyGems Navigation menu

pdf-labels 2.0.1

DESCRIPTION: Welcome to the PDF-Labels project. Our aim is to make creating labels programmatically easy in Ruby. This Library builds on top of "PDF::Writer":ruby-pdf.rubyforge.org/ and uses the templates from "gLabels":glabels.sourceforge.org. What this means is easy, clean Ruby code to create many common label types without measuring the labels yourself! All of this in pure Ruby (we use the XML templates from gLabels, we do NOT have a dependancy on gLabels, nor on Gnome) == FEATURES/PROBLEMS: * Works with all gLabels supported templates for rectangular labels * Does not yet work for CD labels (circles) == SYNOPSIS: p = PDFLabelPage.new("Avery 8160") # label is 2 x 10 #Some examples of adding labels p.add_label() # should add to col 1, row 1 p.add_label(:position => 1) # should add col 1, row 2 p.add_label(:text => "Positoin 15", :position => 15) # should add col 2, row 1 p.add_label(:text => ‘No Margin’, :position => 5, :use_margin => false) #this doesn’t use a margin p.add_label(:position => 9, :text => "X Offset = 4, Y Offset = -6", :offset_x => 4, :offset_y => -6) p.add_label(:text => "Centered", :position => 26, :justification => :center) # should add col 2, row 15 p.add_label(:text => "[Right justified]", :justification => :right, :position => 28)# col 2, row 14, right justified. p.add_label(:position => 29) # should add col 2, row 15 p.add_label(:position => 8, :text => "This was added last and has a BIG font", :font_size => 18)

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 2.0.1 - August 30, 2008* (339.0 KB)
  2. 1.0.1 - October 17, 2007* (257.5 KB)
  3. 1.0.0 - June 23, 2007* (278.0 KB)

Development 依赖 (1):

hoe >= 1.7.0

业主:

作者:

  • Rob Kaufman

SHA 256 校验和:

77cbe65028aaeb9857f60a10f822d557db7d07db7b6ef69b7ea8f1c1506494bb

下载总量 12,142

这个版本 5,266

许可:

需要的 Ruby 版本:

链接: