File: contents.rb

package info (click to toggle)
ruby-prawn 1.3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,936 kB
  • ctags: 802
  • sloc: ruby: 13,906; sh: 43; makefile: 15
file content (29 lines) | stat: -rw-r--r-- 678 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# encoding: utf-8
#
# Generates the Prawn by example manual.

require_relative "example_helper"

Encoding.default_external = Encoding::UTF_8

Prawn::ManualBuilder::Example.generate("manual.pdf",
  :skip_page_creation => true, :page_size => "FOLIO") do

  load_page "", "cover"
  load_page "", "how_to_read_this_manual"

  # Core chapters
  load_package "basic_concepts"
  load_package "graphics"
  load_package "text"
  load_package "bounding_box"

  # Remaining chapters
  load_package "layout"
  load_page "", "table"
  load_package "images"
  load_package "document_and_page_options"
  load_package "outline"
  load_package "repeatable_content"
  load_package "security"
end