Define the document catalog, the overall controller for the document
# File lib/pdf/writer/object/catalog.rb, line 29 def to_s res = "\n#{@oid} 0 obj\n<< /Type /Catalog" res << "\n/Outlines #{@outlines.oid} 0 R" unless @outlines.nil? res << "\n/Pages #{@pages.oid} 0 R" unless @pages.nil? res << "\n/ViewerPreferences #{@viewer_preferences.oid} 0 R" if @viewer_preferences and @parent.version >= '1.2' res << "\n/OpenAction #{@open_here.oid} 0 R" unless @open_here.nil? res << "\n/PageMode /#{@page_mode}" unless @page_mode.nil? res << "\n/Version /#{@parent.version}" if @parent.version >= '1.4' res << ">>\nendobj" end
# File lib/pdf/writer/object/catalog.rb, line 13 def initialize(parent) super(parent) @outlines = nil @pages = nil @open_here = nil @viewer_preferences = nil @page_mode = nil end