Table of Contents - Prawn Documentation
Pages
- COPYING
- HACKING
- LICENSE
-
README
- Prawn: Fast, Nimble PDF Generation For Ruby
- Quick Start
- Any page size you can think of
- Multiple Font Handling with UTF-8 Support
- Drawing graphics directly into the page
- Embedding JPEG and PNG Images Natively
- Measurement Conversion Tools for Your Sanity
- Resources
- Website:
- Examples:
- Bug Tracker / Wiki:
- Source Code:
- Mailing List:
- IRC:
- Notes to Developers:
Classes and Modules
- File
- Numeric
- Prawn
- Prawn::ByteString
- Prawn::Configurable
- Prawn::Core
- Prawn::Core::ObjectStore
- Prawn::Core::Page
- Prawn::Core::Text
- Prawn::Document
- Prawn::Document::Annotations
- Prawn::Document::BoundingBox
- Prawn::Document::ColumnBox
- Prawn::Document::Destinations
- Prawn::Document::GraphicsState
- Prawn::Document::Internals
-
Prawn::Document::PageGeometry
- Inbuilt Sizes:
- > 4767.87 x 6740.79
- > 3370.39 x 4767.87
- > 2383.94 x 3370.39
- > 1683.78 x 2383.94
- > 1190.55 x 1683.78
- > 841.89 x 1190.55
- > 595.28 x 841.89
- > 419.53 x 595.28
- > 297.64 x 419.53
- > 209.76 x 297.64
- > 147.40 x 209.76
- > 104.88 x 147.40
- > 73.70 x 104.88
- > 2834.65 x 4008.19
- > 2004.09 x 2834.65
- > 1417.32 x 2004.09
- > 1000.63 x 1417.32
- > 708.66 x 1000.63
- > 498.90 x 708.66
- > 354.33 x 498.90
- > 249.45 x 354.33
- > 175.75 x 249.45
- > 124.72 x 175.75
- > 87.87 x 124.72
- > 2599.37 x 3676.54
- > 1836.85 x 2599.37
- > 1298.27 x 1836.85
- > 918.43 x 1298.27
- > 649.13 x 918.43
- > 459.21 x 649.13
- > 323.15 x 459.21
- > 229.61 x 323.15
- > 161.57 x 229.61
- > 113.39 x 161.57
- > 79.37 x 113.39
- > 2437.80 x 3458.27
- > 1729.13 x 2437.80
- > 1218.90 x 1729.13
- > 864.57 x 1218.90
- > 609.45 x 864.57
- > 2551.18 x 3628.35
- > 1814.17 x 2551.18
- > 1275.59 x 1814.17
- > 907.09 x 1275.59
- > 637.80 x 907.09
- > 521.86 x 756.00
- > 612.00 x 936.00
- > 612.00 x 1008.00
- > 612.00 x 792.00
- > 792.00 x 1224.00
- Prawn::Document::Snapshot
- Prawn::Encoding
- Prawn::Encoding::WinAnsi
- Prawn::Errors
- Prawn::Font
- Prawn::Font::AFM
- Prawn::Font::DFont
- Prawn::Font::TTF
- Prawn::Graphics
- Prawn::Graphics::CapStyle
- Prawn::Graphics::Color
- Prawn::Graphics::Dash
- Prawn::Graphics::JoinStyle
- Prawn::Graphics::Transformation
- Prawn::Graphics::Transparency
- Prawn::Images
- Prawn::Images::JPG
- Prawn::Images::PNG
- Prawn::LiteralString
- Prawn::Measurements
- Prawn::NameTree
- Prawn::NameTree::Node
- Prawn::NameTree::Value
- Prawn::Outline
- Prawn::OutlineItem
- Prawn::OutlineRoot
- Prawn::Reference
- Prawn::Repeater
- Prawn::Stamp
- Prawn::Text
- Prawn::Text::Box
- Prawn::Text::LineWrap
- String
Methods
- ::binread — File
- ::extensions — Prawn::Document
- ::font_count — Prawn::Font::DFont
- ::generate — Prawn::Document
- ::load — Prawn::Font
- ::metrics_path — Prawn::Font::AFM
- ::named_fonts — Prawn::Font::DFont
- ::new — Prawn::Document
- ::new — Prawn::Font::TTF
- ::new — Prawn::Images::JPG
- ::new — Prawn::Images::PNG
- ::new — Prawn::Outline
- ::new — Prawn::Text::Box
- #PdfObject — Prawn
- #_render — Prawn::Text::Box
- #absolute_bottom — Prawn::Document::BoundingBox
- #absolute_bottom_left — Prawn::Document::BoundingBox
- #absolute_bottom_right — Prawn::Document::BoundingBox
- #absolute_left — Prawn::Document::BoundingBox
- #absolute_right — Prawn::Document::BoundingBox
- #absolute_top — Prawn::Document::BoundingBox
- #absolute_top_left — Prawn::Document::BoundingBox
- #absolute_top_right — Prawn::Document::BoundingBox
- #add_content — Prawn::Document::Internals
- #add_dest — Prawn::Document::Destinations
- #add_outline_item — Prawn::Outline
- #add_section — Prawn::Outline
- #add_to_current_page — Prawn::Font
- #adjust_relations — Prawn::Outline
- #alpha_channel? — Prawn::Images::PNG
- #anchor — Prawn::Document::BoundingBox
- #annotate — Prawn::Document::Annotations
- #append_char — Prawn::Text::LineWrap
- #apply_margin_option — Prawn::Document
- #ascender — Prawn::Font
- #basename — Prawn::Font::TTF
- #bbox — Prawn::Font::AFM
- #bbox — Prawn::Font::TTF
- #before_render — Prawn::Document::Internals
- #bottom — Prawn::Document::BoundingBox
- #bottom_left — Prawn::Document::BoundingBox
- #bottom_right — Prawn::Document::BoundingBox
- #bounding_box — Prawn::Document
- #bounds — Prawn::Document
- #bounds= — Prawn::Document
- #build_jpg_object — Prawn::Images
- #build_png_object — Prawn::Images
- #calc_image_dimensions — Prawn::Images
- #canvas — Prawn::Document
- #cap_height — Prawn::Font::TTF
- #cap_style — Prawn::Graphics::CapStyle
- #cap_style= — Prawn::Graphics::CapStyle
- #character_width_by_code — Prawn::Font::TTF
- #cid_to_gid_map — Prawn::Font::TTF
- #circle_at — Prawn::Graphics
- #cm — Numeric
- #cm2mm — Prawn::Measurements
- #cm2pt — Prawn::Measurements
- #cmap — Prawn::Font::TTF
- #color_space — Prawn::Graphics::Color
- #color_to_s — Prawn::Graphics::Color
- #color_type — Prawn::Graphics::Color
- #colors — Prawn::Images::PNG
- #column_box — Prawn::Document
- #compression_enabled? — Prawn::Document
- #create_outline_item — Prawn::Outline
- #create_stamp — Prawn::Stamp
- #create_stamp_dictionary — Prawn::Stamp
- #cursor — Prawn::Document
- #curve — Prawn::Graphics
- #curve_to — Prawn::Graphics
- #dash — Prawn::Graphics::Dash
- #dash= — Prawn::Graphics::Dash
- #dashed? — Prawn::Graphics::Dash
- #define — Prawn::Outline
- #define_outline — Prawn::Document
- #degree_to_rad — Prawn::Graphics
- #descender — Prawn::Font
- #dest_fit — Prawn::Document::Destinations
- #dest_fit_bounds — Prawn::Document::Destinations
- #dest_fit_bounds_horizontally — Prawn::Document::Destinations
- #dest_fit_bounds_vertically — Prawn::Document::Destinations
- #dest_fit_horizontally — Prawn::Document::Destinations
- #dest_fit_rect — Prawn::Document::Destinations
- #dest_fit_vertically — Prawn::Document::Destinations
- #dest_xyz — Prawn::Document::Destinations
- #dests — Prawn::Document::Destinations
- #detect_image_format — Prawn::Images
- #dm — Numeric
- #dm2mm — Prawn::Measurements
- #dm2pt — Prawn::Measurements
- #draw_indented_line — Prawn::Text
- #draw_remaining_text_on_new_pages — Prawn::Text
- #draw_text — Prawn::Text
- #ellipse_at — Prawn::Graphics
- #embed — Prawn::Font::TTF
- #encode_text — Prawn::Font::AFM
- #encode_text — Prawn::Font::TTF
- #family_class — Prawn::Font::TTF
- #fill — Prawn::Graphics
- #fill_and_stroke — Prawn::Graphics
- #fill_color — Prawn::Graphics::Color
- #fill_color= — Prawn::Graphics::Color
- #fill_text_box — Prawn::Text
- #finalize_all_page_contents — Prawn::Document::Internals
- #find_font — Prawn::Font::AFM
- #float — Prawn::Document
- #font — Prawn::Document
- #font_families — Prawn::Document
- #font_size — Prawn::Document
- #ft — Numeric
- #ft2in — Prawn::Measurements
- #ft2pt — Prawn::Measurements
- #generate_margin_box — Prawn::Document
- #go_to_page — Prawn::Document
- #group — Prawn::Document
- #has_kerning_data? — Prawn::Font::AFM
- #has_kerning_data? — Prawn::Font::TTF
- #height — Prawn::Document::BoundingBox
- #height — Prawn::Font
- #height — Prawn::Text::Box
- #height_at — Prawn::Font
- #height_of — Prawn::Text
- #hex2rgb — Prawn::Graphics::Color
- #hmtx — Prawn::Font::TTF
- #horizontal_line — Prawn::Graphics
- #horizontal_rule — Prawn::Graphics
- #image — Prawn::Images
- #image_position — Prawn::Images
- #image_registry — Prawn::Images
- #in — Numeric
- #in2pt — Prawn::Measurements
- #increase_count — Prawn::Outline
- #indent — Prawn::Document
- #indent — Prawn::Document::BoundingBox
- #init_bounding_box — Prawn::Document
- #init_column_box — Prawn::Document
- #insert_ellipses — Prawn::Text::Box
- #insert_section_after — Prawn::Outline
- #inspect_options_for_draw_text — Prawn::Text
- #inspect_options_for_text — Prawn::Text
- #italic_angle — Prawn::Font::TTF
- #join_style — Prawn::Graphics::JoinStyle
- #join_style= — Prawn::Graphics::JoinStyle
- #kern — Prawn::Font::AFM
- #kern — Prawn::Font::TTF
- #kern_pairs_table — Prawn::Font::TTF
- #last_line? — Prawn::Text::Box
- #latin_glyphs_table — Prawn::Font::AFM
- #latin_kern_pairs_table — Prawn::Font::AFM
- #left — Prawn::Document::BoundingBox
- #left_side — Prawn::Document::BoundingBox
- #left_side — Prawn::Document::ColumnBox
- #line — Prawn::Graphics
- #line_gap — Prawn::Font
- #line_to — Prawn::Graphics
- #line_width — Prawn::Graphics
- #line_width= — Prawn::Graphics
- #link_annotation — Prawn::Document::Annotations
- #m — Numeric
- #m2mm — Prawn::Measurements
- #m2pt — Prawn::Measurements
- #map_to_absolute — Prawn::Graphics
- #map_to_absolute! — Prawn::Graphics
- #method_missing — Prawn::Graphics::Color
- #min_version — Prawn::Document::Internals
- #mm — Numeric
- #mm2pt — Prawn::Measurements
- #move_cursor_to — Prawn::Document
- #move_down — Prawn::Document
- #move_past_bottom — Prawn::Document::BoundingBox
- #move_past_bottom — Prawn::Document::ColumnBox
- #move_text_position — Prawn::Text
- #move_to — Prawn::Graphics
- #move_up — Prawn::Document
- #names — Prawn::Document::Internals
- #names? — Prawn::Document::Internals
- #next_image_id — Prawn::Images
- #next_opacity_dictionary_id — Prawn::Graphics::Transparency
- #next_stamp_dictionary_id — Prawn::Stamp
- #normalize_color — Prawn::Graphics::Color
- #normalize_encoding — Prawn::Font
- #normalize_encoding — Prawn::Font::AFM
- #normalize_encoding — Prawn::Font::TTF
- #normalize_encoding! — Prawn::Font
- #number_pages — Prawn::Document
- #on_page_create — Prawn::Document::Internals
- #opacity_dictionary_name — Prawn::Graphics::Transparency
- #opacity_dictionary_registry — Prawn::Graphics::Transparency
- #outline — Prawn::Document
- #outline_root — Prawn::Document
- #pad — Prawn::Document
- #pad_bottom — Prawn::Document
- #pad_top — Prawn::Document
- #page — Prawn::Outline
- #page_count — Prawn::Document
- #page_number — Prawn::Document
- #parse_afm — Prawn::Font::AFM
- #parse_generic_afm_attribute — Prawn::Font::AFM
- #pdf_flags — Prawn::Font::TTF
- #pixel_bitlength — Prawn::Images::PNG
- #point_on_line — Prawn::Graphics
- #polygon — Prawn::Graphics
- #print_line — Prawn::Text::Box
- #process_color — Prawn::Graphics::Color
- #process_final_gap_option — Prawn::Text
- #process_indent_paragraphs_option — Prawn::Text
- #process_options — Prawn::Text::Box
- #process_vertical_alignment — Prawn::Text::Box
- #pt — Numeric
- #pt2mm — Prawn::Measurements
- #read_ttf_file — Prawn::Font::DFont
- #read_ttf_file — Prawn::Font::TTF
- #rectangle — Prawn::Graphics
- #ref — Prawn::Document::Internals
- #ref! — Prawn::Document::Internals
- #register — Prawn::Font::AFM
- #register — Prawn::Font::TTF
- #render — Prawn::Document
- #render — Prawn::Text::Box
- #render_body — Prawn::Document::Internals
- #render_file — Prawn::Document
- #render_header — Prawn::Document::Internals
- #render_rotated — Prawn::Text::Box
- #render_trailer — Prawn::Document::Internals
- #render_xref — Prawn::Document::Internals
- #repeat — Prawn::Document
- #repeaters — Prawn::Document
- #reset_parent — Prawn::Outline
- #restore_graphics_state — Prawn::Document::GraphicsState
- #restore_snapshot — Prawn::Document::Snapshot
- #rgb2hex — Prawn::Graphics::Color
- #right — Prawn::Document::BoundingBox
- #right_side — Prawn::Document::BoundingBox
- #right_side — Prawn::Document::ColumnBox
- #rollback — Prawn::Document::Snapshot
- #rotate — Prawn::Graphics::Transformation
- #rounded_polygon — Prawn::Graphics
- #rounded_rectangle — Prawn::Graphics
- #rounded_vertex — Prawn::Graphics
- #sanitize_annotation_hash — Prawn::Document::Annotations
- #save_font — Prawn::Document
- #save_graphics_state — Prawn::Document::GraphicsState
- #scale — Prawn::Graphics::Transformation
- #scale_factor — Prawn::Font::TTF
- #script? — Prawn::Font::TTF
- #section — Prawn::Outline
- #serif? — Prawn::Font::TTF
- #set_color — Prawn::Graphics::Color
- #set_color_space — Prawn::Graphics::Color
- #set_fill_color — Prawn::Graphics::Color
- #set_relations — Prawn::Outline
- #set_stroke_color — Prawn::Graphics::Color
- #set_variables_for_block — Prawn::Outline
- #shrink_to_fit — Prawn::Text::Box
- #size — Prawn::Font
- #span — Prawn::Document
- #split_alpha_channel! — Prawn::Images::PNG
- #stamp — Prawn::Stamp
- #stamp_at — Prawn::Stamp
- #stamp_dictionary — Prawn::Stamp
- #stamp_dictionary_registry — Prawn::Stamp
- #start_new_page — Prawn::Document
- #stemV — Prawn::Font::TTF
- #stretchy? — Prawn::Document::BoundingBox
- #stroke — Prawn::Graphics
- #stroke_bounds — Prawn::Graphics
- #stroke_color — Prawn::Graphics::Color
- #stroke_color= — Prawn::Graphics::Color
- #symbolic? — Prawn::Font::AFM
- #take_snapshot — Prawn::Document::Snapshot
- #text — Prawn::Text
- #text_annotation — Prawn::Document::Annotations
- #text_box — Prawn::Text
- #top — Prawn::Document::BoundingBox
- #top_left — Prawn::Document::BoundingBox
- #top_right — Prawn::Document::BoundingBox
- #transaction — Prawn::Document::Snapshot
- #transformation_matrix — Prawn::Graphics::Transformation
- #translate — Prawn::Graphics::Transformation
- #transparent — Prawn::Graphics::Transparency
- #undash — Prawn::Graphics::Dash
- #undash_hash — Prawn::Graphics::Dash
- #unfilter_image_data — Prawn::Images::PNG
- #unicode? — Prawn::Font::AFM
- #unicode? — Prawn::Font::TTF
- #unscaled_width_of — Prawn::Font::AFM
- #update_colors — Prawn::Graphics::Color
- #update_height — Prawn::Document::BoundingBox
- #vertical_line — Prawn::Graphics
- #width — Prawn::Document::BoundingBox
- #width — Prawn::Document::ColumnBox
- #width_of — Prawn::Document
- #width_of_column — Prawn::Document::ColumnBox
- #wrap_by_char — Prawn::Text::LineWrap
- #wrap_line — Prawn::Text::LineWrap
- #write_stroke_cap_style — Prawn::Graphics::CapStyle
- #write_stroke_dash — Prawn::Graphics::Dash
- #write_stroke_join_style — Prawn::Graphics::JoinStyle
- #x_height — Prawn::Font::TTF
- #y= — Prawn::Document
- #yd — Numeric
- #yd2in — Prawn::Measurements
- #yd2pt — Prawn::Measurements