Sha256: f5d77baa4c9cb0bd30edfdf9b52be6bcf52efc354c550a6f5e19d13a3b8c0a4f
Contents?: true
Size: 700 Bytes
Versions: 7
Compression:
Stored size: 700 Bytes
Contents
#-- # PDF::Writer for Ruby. # http://rubyforge.org/projects/ruby-pdf/ # Copyright 2003 - 2005 Austin Ziegler. # # Licensed under a MIT-style licence. See LICENCE in the main distribution # for full licensing information. # # $Id$ #++ # Define the outlines in the doc, empty for now class PDF::Writer::Object::Outlines < PDF::Writer::Object def initialize(parent) super(parent) @list = [] @parent.catalog.outlines = self end attr_reader :list def to_s if @list.empty? "\n#{@oid} 0 obj\n<< /Type /Outlines >>\nendobj" else "\n#{@oid} 0 obj\n<< /Type /Outlines /First #{@list[0].oid} 0 R /Last #{@list[-1].oid} 0 R>>\nendobj" end end end
Version data entries
7 entries across 7 versions & 3 rubygems