diff --git a/book_of_faces.rb b/book_of_faces.rb index 2fe48c4..2bd033e 100644 --- a/book_of_faces.rb +++ b/book_of_faces.rb @@ -172,6 +172,10 @@ class BookOfFaces rating_spells.sort_by { |spell| spell.name }.each do |spell| puts "\t\tCompiling #{spell.full_title} by #{spell.authors.join(', ')}" + + pdf.outline.add_subsection_to(rating_title) do + @pdf.outline.section spell.full_title, :destination => @pdf.page_number + end spell_ary = [{:text => "#{spell.name} (", :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}]