2009-09-04から1日間の記事一覧

prawn:Prawn::Document::Destinations#dest_fit_horizontally

#!/usr/bin/env ruby require "prawn" pdf = Prawn::Document.new pdf.link_annotation([0, 100, 100, 150], :Dest => pdf.dest_fit_horizontally(700)) pdf.render_file(File.basename($0, ".rb") + ".pdf")

Manual:Error Reporting:Operators, Functions and Classes:throw

>>> from lepl import * >>> throw() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: throw() takes exactly 1 positional argument (0 given) >>> throw("foo") 'foo'</module></stdin>