Class PDF::TechBook::TagTocDots
In: lib/pdf/techbook.rb
Parent: Object

A stand-alone callback that draws a dotted line over to the right and appends a page number. The info[:params] will be like a standard XML tag with three named parameters:

level:The table of contents level that corresponds to a particular style. In the current TechBook implementation, there are only two levels. Level 1 uses a 16 point font and level1_style; level 2 uses a 12 point font and level2_style.
page:The page number that is to be printed.
xref:The target destination that will be used as a link.

All parameters are required.

Methods

[]  

Constants

DEFAULT_L1_STYLE = { :width => 1, :cap => :round, :dash => { :pattern => [ 1, 3 ], :phase => 1 }, :font_size => 16
DEFAULT_L2_STYLE = { :width => 1, :cap => :round, :dash => { :pattern => [ 1, 5 ], :phase => 1 }, :font_size => 12

Attributes

level1_style  [RW]  Controls the level 1 style.
level2_style  [RW]  Controls the level 2 style.

Public Class methods

[Validate]