prawn-layout 0.3.2 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -0
- data/Rakefile +6 -3
- data/lib/prawn/layout.rb +1 -1
- data/lib/prawn/layout/page.rb +0 -40
- data/lib/prawn/table/cell.rb +15 -13
- metadata +31 -309
- data/examples/page_layout/flowing_text_with_header_and_footer.rb +0 -36
- data/spec/page_layout_spec.rb +0 -41
- data/vendor/prawn-core/COPYING +0 -340
- data/vendor/prawn-core/HACKING +0 -46
- data/vendor/prawn-core/LICENSE +0 -56
- data/vendor/prawn-core/README +0 -142
- data/vendor/prawn-core/Rakefile +0 -75
- data/vendor/prawn-core/bench/afm_text_bench.rb +0 -18
- data/vendor/prawn-core/bench/png_type_6.rb +0 -15
- data/vendor/prawn-core/bench/ttf_text_bench.rb +0 -19
- data/vendor/prawn-core/bugs/canvas_sets_y_to_0.rb +0 -15
- data/vendor/prawn-core/bugs/png_barcode_issue.rb +0 -11
- data/vendor/prawn-core/bugs/resolved/canvas_sets_y_to_0.rb +0 -15
- data/vendor/prawn-core/data/encodings/win_ansi.txt +0 -29
- data/vendor/prawn-core/data/fonts/Action Man.dfont +0 -0
- data/vendor/prawn-core/data/fonts/Activa.ttf +0 -0
- data/vendor/prawn-core/data/fonts/Chalkboard.ttf +0 -0
- data/vendor/prawn-core/data/fonts/Courier-Bold.afm +0 -342
- data/vendor/prawn-core/data/fonts/Courier-BoldOblique.afm +0 -342
- data/vendor/prawn-core/data/fonts/Courier-Oblique.afm +0 -342
- data/vendor/prawn-core/data/fonts/Courier.afm +0 -342
- data/vendor/prawn-core/data/fonts/DejaVuSans.ttf +0 -0
- data/vendor/prawn-core/data/fonts/Dustismo_Roman.ttf +0 -0
- data/vendor/prawn-core/data/fonts/Helvetica-Bold.afm +0 -2827
- data/vendor/prawn-core/data/fonts/Helvetica-BoldOblique.afm +0 -2827
- data/vendor/prawn-core/data/fonts/Helvetica-Oblique.afm +0 -3051
- data/vendor/prawn-core/data/fonts/Helvetica.afm +0 -3051
- data/vendor/prawn-core/data/fonts/MustRead.html +0 -19
- data/vendor/prawn-core/data/fonts/Symbol.afm +0 -213
- data/vendor/prawn-core/data/fonts/Times-Bold.afm +0 -2588
- data/vendor/prawn-core/data/fonts/Times-BoldItalic.afm +0 -2384
- data/vendor/prawn-core/data/fonts/Times-Italic.afm +0 -2667
- data/vendor/prawn-core/data/fonts/Times-Roman.afm +0 -2419
- data/vendor/prawn-core/data/fonts/ZapfDingbats.afm +0 -225
- data/vendor/prawn-core/data/fonts/comicsans.ttf +0 -0
- data/vendor/prawn-core/data/fonts/gkai00mp.ttf +0 -0
- data/vendor/prawn-core/data/images/16bit.alpha +0 -0
- data/vendor/prawn-core/data/images/16bit.dat +0 -0
- data/vendor/prawn-core/data/images/16bit.png +0 -0
- data/vendor/prawn-core/data/images/arrow.png +0 -0
- data/vendor/prawn-core/data/images/arrow2.png +0 -0
- data/vendor/prawn-core/data/images/barcode_issue.png +0 -0
- data/vendor/prawn-core/data/images/dice.alpha +0 -0
- data/vendor/prawn-core/data/images/dice.dat +0 -0
- data/vendor/prawn-core/data/images/dice.png +0 -0
- data/vendor/prawn-core/data/images/dice_interlaced.png +0 -0
- data/vendor/prawn-core/data/images/fractal.jpg +0 -0
- data/vendor/prawn-core/data/images/letterhead.jpg +0 -0
- data/vendor/prawn-core/data/images/page_white_text.alpha +0 -0
- data/vendor/prawn-core/data/images/page_white_text.dat +0 -0
- data/vendor/prawn-core/data/images/page_white_text.png +0 -0
- data/vendor/prawn-core/data/images/pigs.jpg +0 -0
- data/vendor/prawn-core/data/images/rails.dat +0 -0
- data/vendor/prawn-core/data/images/rails.png +0 -0
- data/vendor/prawn-core/data/images/ruport.png +0 -0
- data/vendor/prawn-core/data/images/ruport_data.dat +0 -0
- data/vendor/prawn-core/data/images/ruport_transparent.png +0 -0
- data/vendor/prawn-core/data/images/ruport_type0.png +0 -0
- data/vendor/prawn-core/data/images/stef.jpg +0 -0
- data/vendor/prawn-core/data/images/tru256.bmp +0 -0
- data/vendor/prawn-core/data/images/web-links.dat +0 -1
- data/vendor/prawn-core/data/images/web-links.png +0 -0
- data/vendor/prawn-core/data/shift_jis_text.txt +0 -1
- data/vendor/prawn-core/examples/bounding_box/bounding_boxes.rb +0 -43
- data/vendor/prawn-core/examples/bounding_box/indentation.rb +0 -34
- data/vendor/prawn-core/examples/bounding_box/russian_boxes.rb +0 -36
- data/vendor/prawn-core/examples/bounding_box/stretched_nesting.rb +0 -67
- data/vendor/prawn-core/examples/column_box/column_box_example.rb +0 -43
- data/vendor/prawn-core/examples/example_helper.rb +0 -3
- data/vendor/prawn-core/examples/general/background.rb +0 -23
- data/vendor/prawn-core/examples/general/canvas.rb +0 -15
- data/vendor/prawn-core/examples/general/margin.rb +0 -36
- data/vendor/prawn-core/examples/general/measurement_units.rb +0 -51
- data/vendor/prawn-core/examples/general/metadata-info.rb +0 -16
- data/vendor/prawn-core/examples/general/multi_page_layout.rb +0 -18
- data/vendor/prawn-core/examples/general/page_geometry.rb +0 -31
- data/vendor/prawn-core/examples/general/page_numbering.rb +0 -15
- data/vendor/prawn-core/examples/general/stamp.rb +0 -45
- data/vendor/prawn-core/examples/graphics/basic_images.rb +0 -23
- data/vendor/prawn-core/examples/graphics/cmyk.rb +0 -12
- data/vendor/prawn-core/examples/graphics/curves.rb +0 -11
- data/vendor/prawn-core/examples/graphics/hexagon.rb +0 -13
- data/vendor/prawn-core/examples/graphics/image_fit.rb +0 -15
- data/vendor/prawn-core/examples/graphics/image_flow.rb +0 -37
- data/vendor/prawn-core/examples/graphics/image_position.rb +0 -17
- data/vendor/prawn-core/examples/graphics/line.rb +0 -32
- data/vendor/prawn-core/examples/graphics/png_types.rb +0 -22
- data/vendor/prawn-core/examples/graphics/polygons.rb +0 -16
- data/vendor/prawn-core/examples/graphics/remote_images.rb +0 -12
- data/vendor/prawn-core/examples/graphics/ruport_style_helpers.rb +0 -19
- data/vendor/prawn-core/examples/graphics/stroke_bounds.rb +0 -20
- data/vendor/prawn-core/examples/graphics/stroke_cap_and_join.rb +0 -45
- data/vendor/prawn-core/examples/graphics/stroke_dash.rb +0 -42
- data/vendor/prawn-core/examples/graphics/transparency.rb +0 -26
- data/vendor/prawn-core/examples/m17n/chinese_text_wrapping.rb +0 -19
- data/vendor/prawn-core/examples/m17n/euro.rb +0 -15
- data/vendor/prawn-core/examples/m17n/sjis.rb +0 -28
- data/vendor/prawn-core/examples/m17n/utf8.rb +0 -13
- data/vendor/prawn-core/examples/m17n/win_ansi_charset.rb +0 -54
- data/vendor/prawn-core/examples/text/alignment.rb +0 -18
- data/vendor/prawn-core/examples/text/dfont.rb +0 -48
- data/vendor/prawn-core/examples/text/family_based_styling.rb +0 -24
- data/vendor/prawn-core/examples/text/font_calculations.rb +0 -91
- data/vendor/prawn-core/examples/text/font_size.rb +0 -33
- data/vendor/prawn-core/examples/text/kerning.rb +0 -30
- data/vendor/prawn-core/examples/text/simple_text.rb +0 -17
- data/vendor/prawn-core/examples/text/simple_text_ttf.rb +0 -17
- data/vendor/prawn-core/examples/text/span.rb +0 -29
- data/vendor/prawn-core/examples/text/text_box.rb +0 -25
- data/vendor/prawn-core/examples/text/text_box_returning_excess.rb +0 -51
- data/vendor/prawn-core/examples/text/text_flow.rb +0 -67
- data/vendor/prawn-core/lib/prawn/byte_string.rb +0 -7
- data/vendor/prawn-core/lib/prawn/compatibility.rb +0 -38
- data/vendor/prawn-core/lib/prawn/core.rb +0 -85
- data/vendor/prawn-core/lib/prawn/document.rb +0 -534
- data/vendor/prawn-core/lib/prawn/document/annotations.rb +0 -65
- data/vendor/prawn-core/lib/prawn/document/bounding_box.rb +0 -390
- data/vendor/prawn-core/lib/prawn/document/column_box.rb +0 -102
- data/vendor/prawn-core/lib/prawn/document/destinations.rb +0 -92
- data/vendor/prawn-core/lib/prawn/document/internals.rb +0 -180
- data/vendor/prawn-core/lib/prawn/document/page_geometry.rb +0 -153
- data/vendor/prawn-core/lib/prawn/document/snapshot.rb +0 -71
- data/vendor/prawn-core/lib/prawn/document/span.rb +0 -55
- data/vendor/prawn-core/lib/prawn/document/text.rb +0 -184
- data/vendor/prawn-core/lib/prawn/document/text/box.rb +0 -90
- data/vendor/prawn-core/lib/prawn/document/text/wrapping.rb +0 -62
- data/vendor/prawn-core/lib/prawn/encoding.rb +0 -121
- data/vendor/prawn-core/lib/prawn/errors.rb +0 -61
- data/vendor/prawn-core/lib/prawn/font.rb +0 -297
- data/vendor/prawn-core/lib/prawn/font/afm.rb +0 -202
- data/vendor/prawn-core/lib/prawn/font/dfont.rb +0 -34
- data/vendor/prawn-core/lib/prawn/font/ttf.rb +0 -329
- data/vendor/prawn-core/lib/prawn/graphics.rb +0 -264
- data/vendor/prawn-core/lib/prawn/graphics/cap_style.rb +0 -35
- data/vendor/prawn-core/lib/prawn/graphics/color.rb +0 -141
- data/vendor/prawn-core/lib/prawn/graphics/dash.rb +0 -69
- data/vendor/prawn-core/lib/prawn/graphics/join_style.rb +0 -35
- data/vendor/prawn-core/lib/prawn/graphics/transparency.rb +0 -56
- data/vendor/prawn-core/lib/prawn/images.rb +0 -339
- data/vendor/prawn-core/lib/prawn/images/jpg.rb +0 -46
- data/vendor/prawn-core/lib/prawn/images/png.rb +0 -219
- data/vendor/prawn-core/lib/prawn/literal_string.rb +0 -14
- data/vendor/prawn-core/lib/prawn/measurement_extensions.rb +0 -46
- data/vendor/prawn-core/lib/prawn/measurements.rb +0 -71
- data/vendor/prawn-core/lib/prawn/name_tree.rb +0 -166
- data/vendor/prawn-core/lib/prawn/object_store.rb +0 -63
- data/vendor/prawn-core/lib/prawn/pdf_object.rb +0 -81
- data/vendor/prawn-core/lib/prawn/reference.rb +0 -72
- data/vendor/prawn-core/lib/prawn/stamp.rb +0 -87
- data/vendor/prawn-core/meta/Rakefile +0 -62
- data/vendor/prawn-core/meta/lib/prawn.rb +0 -2
- data/vendor/prawn-core/reference_pdfs/alignment.pdf +0 -229
- data/vendor/prawn-core/reference_pdfs/background.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/basic_images.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/bounding_boxes.pdf +0 -128
- data/vendor/prawn-core/reference_pdfs/canvas.pdf +0 -78
- data/vendor/prawn-core/reference_pdfs/chinese_flow.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/cmyk.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/column_box.pdf +0 -3671
- data/vendor/prawn-core/reference_pdfs/curves.pdf +0 -62
- data/vendor/prawn-core/reference_pdfs/dfont.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/euro.pdf +0 -75
- data/vendor/prawn-core/reference_pdfs/family_style.pdf +0 -286
- data/vendor/prawn-core/reference_pdfs/flow.pdf +0 -964
- data/vendor/prawn-core/reference_pdfs/font_calculations.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/font_size.pdf +0 -142
- data/vendor/prawn-core/reference_pdfs/hexagon.pdf +0 -61
- data/vendor/prawn-core/reference_pdfs/image-flow.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/image_fit.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/image_position.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/indentation.pdf +0 -124
- data/vendor/prawn-core/reference_pdfs/kerning.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/landscape_a4.pdf +0 -52
- data/vendor/prawn-core/reference_pdfs/landscape_legal.pdf +0 -52
- data/vendor/prawn-core/reference_pdfs/landscape_letter.pdf +0 -52
- data/vendor/prawn-core/reference_pdfs/lines.pdf +0 -116
- data/vendor/prawn-core/reference_pdfs/margin.pdf +0 -3850
- data/vendor/prawn-core/reference_pdfs/measurement_units.pdf +0 -4667
- data/vendor/prawn-core/reference_pdfs/metadata-info.pdf +0 -88
- data/vendor/prawn-core/reference_pdfs/multi-layout.pdf +0 -209
- data/vendor/prawn-core/reference_pdfs/page_with_numbering.pdf +0 -156
- data/vendor/prawn-core/reference_pdfs/png_types.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/portrait_a4.pdf +0 -52
- data/vendor/prawn-core/reference_pdfs/portrait_legal.pdf +0 -52
- data/vendor/prawn-core/reference_pdfs/portrait_letter.pdf +0 -52
- data/vendor/prawn-core/reference_pdfs/pretty_polygons.pdf +0 -122
- data/vendor/prawn-core/reference_pdfs/remote_images.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/ruport.pdf +0 -101
- data/vendor/prawn-core/reference_pdfs/russian_boxes.pdf +0 -2780
- data/vendor/prawn-core/reference_pdfs/simple_text.pdf +0 -136
- data/vendor/prawn-core/reference_pdfs/simple_text_ttf.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/sjis.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/span.pdf +0 -1975
- data/vendor/prawn-core/reference_pdfs/stamp.pdf +0 -696
- data/vendor/prawn-core/reference_pdfs/stretched_nesting.pdf +0 -200
- data/vendor/prawn-core/reference_pdfs/stroke_bounds.pdf +0 -135
- data/vendor/prawn-core/reference_pdfs/stroke_cap_and_join.pdf +0 -80
- data/vendor/prawn-core/reference_pdfs/stroke_dash.pdf +0 -457
- data/vendor/prawn-core/reference_pdfs/text_box.pdf +0 -315
- data/vendor/prawn-core/reference_pdfs/text_box_returning_excess.pdf +0 -271
- data/vendor/prawn-core/reference_pdfs/transparency.pdf +0 -347
- data/vendor/prawn-core/reference_pdfs/utf8.pdf +0 -0
- data/vendor/prawn-core/reference_pdfs/win-ansi.pdf +0 -6172
- data/vendor/prawn-core/spec/annotations_spec.rb +0 -90
- data/vendor/prawn-core/spec/bounding_box_spec.rb +0 -185
- data/vendor/prawn-core/spec/destinations_spec.rb +0 -15
- data/vendor/prawn-core/spec/document_spec.rb +0 -231
- data/vendor/prawn-core/spec/font_spec.rb +0 -273
- data/vendor/prawn-core/spec/graphics_spec.rb +0 -209
- data/vendor/prawn-core/spec/images_spec.rb +0 -79
- data/vendor/prawn-core/spec/jpg_spec.rb +0 -25
- data/vendor/prawn-core/spec/measurement_units_spec.rb +0 -23
- data/vendor/prawn-core/spec/name_tree_spec.rb +0 -112
- data/vendor/prawn-core/spec/object_store_spec.rb +0 -42
- data/vendor/prawn-core/spec/pdf_object_spec.rb +0 -122
- data/vendor/prawn-core/spec/png_spec.rb +0 -236
- data/vendor/prawn-core/spec/reference_spec.rb +0 -82
- data/vendor/prawn-core/spec/snapshot_spec.rb +0 -115
- data/vendor/prawn-core/spec/span_spec.rb +0 -45
- data/vendor/prawn-core/spec/spec_helper.rb +0 -20
- data/vendor/prawn-core/spec/stamp_spec.rb +0 -98
- data/vendor/prawn-core/spec/stroke_styles_spec.rb +0 -152
- data/vendor/prawn-core/spec/text_box_spec.rb +0 -109
- data/vendor/prawn-core/spec/text_spec.rb +0 -185
- data/vendor/prawn-core/spec/transparency_spec.rb +0 -61
- data/vendor/prawn-core/vendor/pdf-inspector/README +0 -18
- data/vendor/prawn-core/vendor/pdf-inspector/lib/pdf/inspector.rb +0 -26
- data/vendor/prawn-core/vendor/pdf-inspector/lib/pdf/inspector/extgstate.rb +0 -18
- data/vendor/prawn-core/vendor/pdf-inspector/lib/pdf/inspector/graphics.rb +0 -119
- data/vendor/prawn-core/vendor/pdf-inspector/lib/pdf/inspector/page.rb +0 -25
- data/vendor/prawn-core/vendor/pdf-inspector/lib/pdf/inspector/text.rb +0 -31
- data/vendor/prawn-core/vendor/pdf-inspector/lib/pdf/inspector/xobject.rb +0 -19
- data/vendor/prawn-core/vendor/ttfunk/data/fonts/DejaVuSans.ttf +0 -0
- data/vendor/prawn-core/vendor/ttfunk/data/fonts/comicsans.ttf +0 -0
- data/vendor/prawn-core/vendor/ttfunk/example.rb +0 -45
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk.rb +0 -102
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/directory.rb +0 -17
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/encoding/mac_roman.rb +0 -88
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/encoding/windows_1252.rb +0 -69
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/reader.rb +0 -44
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/resource_file.rb +0 -78
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/subset.rb +0 -18
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/subset/base.rb +0 -141
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/subset/mac_roman.rb +0 -46
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/subset/unicode.rb +0 -48
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/subset/unicode_8bit.rb +0 -63
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/subset/windows_1252.rb +0 -51
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/subset_collection.rb +0 -72
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table.rb +0 -46
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/cmap.rb +0 -34
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/cmap/format00.rb +0 -54
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/cmap/format04.rb +0 -126
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/cmap/subtable.rb +0 -79
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/glyf.rb +0 -64
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/glyf/compound.rb +0 -81
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/glyf/simple.rb +0 -37
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/head.rb +0 -44
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/hhea.rb +0 -41
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/hmtx.rb +0 -47
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/kern.rb +0 -79
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/kern/format0.rb +0 -62
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/loca.rb +0 -43
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/maxp.rb +0 -40
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/name.rb +0 -119
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/os2.rb +0 -78
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/post.rb +0 -91
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/post/format10.rb +0 -43
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/post/format20.rb +0 -35
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/post/format25.rb +0 -23
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/post/format30.rb +0 -17
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/post/format40.rb +0 -17
- data/vendor/prawn-core/vendor/ttfunk/lib/ttfunk/table/simple.rb +0 -14
- data/vendor/prawn-core/www/index.html +0 -196
- data/vendor/prawn-core/www/media/bounding_boxes.pdf +0 -146
- data/vendor/prawn-core/www/media/bounding_boxes.png +0 -0
- data/vendor/prawn-core/www/media/bounding_boxes_out.png +0 -0
- data/vendor/prawn-core/www/media/fancy_table.pdf +0 -350
- data/vendor/prawn-core/www/media/image.pdf +0 -0
- data/vendor/prawn-core/www/media/images.png +0 -0
- data/vendor/prawn-core/www/media/prawn_logo.png +0 -0
- data/vendor/prawn-core/www/media/tables.png +0 -0
- data/vendor/prawn-core/www/media/utf8.pdf +0 -0
- data/vendor/prawn-core/www/media/utf8.png +0 -0
- data/vendor/prawn-core/www/prawn-Chinese.html +0 -113
- data/vendor/prawn-core/www/prawn.css +0 -86
- data/vendor/prawn-core/www/twilight.css +0 -266
@@ -1,225 +0,0 @@
|
|
1
|
-
StartFontMetrics 4.1
|
2
|
-
Comment Copyright (c) 1985, 1987, 1988, 1989, 1997 Adobe Systems Incorporated. All Rights Reserved.
|
3
|
-
Comment Creation Date: Thu May 1 15:14:13 1997
|
4
|
-
Comment UniqueID 43082
|
5
|
-
Comment VMusage 45775 55535
|
6
|
-
FontName ZapfDingbats
|
7
|
-
FullName ITC Zapf Dingbats
|
8
|
-
FamilyName ZapfDingbats
|
9
|
-
Weight Medium
|
10
|
-
ItalicAngle 0
|
11
|
-
IsFixedPitch false
|
12
|
-
CharacterSet Special
|
13
|
-
FontBBox -1 -143 981 820
|
14
|
-
UnderlinePosition -100
|
15
|
-
UnderlineThickness 50
|
16
|
-
Version 002.000
|
17
|
-
Notice Copyright (c) 1985, 1987, 1988, 1989, 1997 Adobe Systems Incorporated. All Rights Reserved.ITC Zapf Dingbats is a registered trademark of International Typeface Corporation.
|
18
|
-
EncodingScheme FontSpecific
|
19
|
-
StdHW 28
|
20
|
-
StdVW 90
|
21
|
-
StartCharMetrics 202
|
22
|
-
C 32 ; WX 278 ; N space ; B 0 0 0 0 ;
|
23
|
-
C 33 ; WX 974 ; N a1 ; B 35 72 939 621 ;
|
24
|
-
C 34 ; WX 961 ; N a2 ; B 35 81 927 611 ;
|
25
|
-
C 35 ; WX 974 ; N a202 ; B 35 72 939 621 ;
|
26
|
-
C 36 ; WX 980 ; N a3 ; B 35 0 945 692 ;
|
27
|
-
C 37 ; WX 719 ; N a4 ; B 34 139 685 566 ;
|
28
|
-
C 38 ; WX 789 ; N a5 ; B 35 -14 755 705 ;
|
29
|
-
C 39 ; WX 790 ; N a119 ; B 35 -14 755 705 ;
|
30
|
-
C 40 ; WX 791 ; N a118 ; B 35 -13 761 705 ;
|
31
|
-
C 41 ; WX 690 ; N a117 ; B 34 138 655 553 ;
|
32
|
-
C 42 ; WX 960 ; N a11 ; B 35 123 925 568 ;
|
33
|
-
C 43 ; WX 939 ; N a12 ; B 35 134 904 559 ;
|
34
|
-
C 44 ; WX 549 ; N a13 ; B 29 -11 516 705 ;
|
35
|
-
C 45 ; WX 855 ; N a14 ; B 34 59 820 632 ;
|
36
|
-
C 46 ; WX 911 ; N a15 ; B 35 50 876 642 ;
|
37
|
-
C 47 ; WX 933 ; N a16 ; B 35 139 899 550 ;
|
38
|
-
C 48 ; WX 911 ; N a105 ; B 35 50 876 642 ;
|
39
|
-
C 49 ; WX 945 ; N a17 ; B 35 139 909 553 ;
|
40
|
-
C 50 ; WX 974 ; N a18 ; B 35 104 938 587 ;
|
41
|
-
C 51 ; WX 755 ; N a19 ; B 34 -13 721 705 ;
|
42
|
-
C 52 ; WX 846 ; N a20 ; B 36 -14 811 705 ;
|
43
|
-
C 53 ; WX 762 ; N a21 ; B 35 0 727 692 ;
|
44
|
-
C 54 ; WX 761 ; N a22 ; B 35 0 727 692 ;
|
45
|
-
C 55 ; WX 571 ; N a23 ; B -1 -68 571 661 ;
|
46
|
-
C 56 ; WX 677 ; N a24 ; B 36 -13 642 705 ;
|
47
|
-
C 57 ; WX 763 ; N a25 ; B 35 0 728 692 ;
|
48
|
-
C 58 ; WX 760 ; N a26 ; B 35 0 726 692 ;
|
49
|
-
C 59 ; WX 759 ; N a27 ; B 35 0 725 692 ;
|
50
|
-
C 60 ; WX 754 ; N a28 ; B 35 0 720 692 ;
|
51
|
-
C 61 ; WX 494 ; N a6 ; B 35 0 460 692 ;
|
52
|
-
C 62 ; WX 552 ; N a7 ; B 35 0 517 692 ;
|
53
|
-
C 63 ; WX 537 ; N a8 ; B 35 0 503 692 ;
|
54
|
-
C 64 ; WX 577 ; N a9 ; B 35 96 542 596 ;
|
55
|
-
C 65 ; WX 692 ; N a10 ; B 35 -14 657 705 ;
|
56
|
-
C 66 ; WX 786 ; N a29 ; B 35 -14 751 705 ;
|
57
|
-
C 67 ; WX 788 ; N a30 ; B 35 -14 752 705 ;
|
58
|
-
C 68 ; WX 788 ; N a31 ; B 35 -14 753 705 ;
|
59
|
-
C 69 ; WX 790 ; N a32 ; B 35 -14 756 705 ;
|
60
|
-
C 70 ; WX 793 ; N a33 ; B 35 -13 759 705 ;
|
61
|
-
C 71 ; WX 794 ; N a34 ; B 35 -13 759 705 ;
|
62
|
-
C 72 ; WX 816 ; N a35 ; B 35 -14 782 705 ;
|
63
|
-
C 73 ; WX 823 ; N a36 ; B 35 -14 787 705 ;
|
64
|
-
C 74 ; WX 789 ; N a37 ; B 35 -14 754 705 ;
|
65
|
-
C 75 ; WX 841 ; N a38 ; B 35 -14 807 705 ;
|
66
|
-
C 76 ; WX 823 ; N a39 ; B 35 -14 789 705 ;
|
67
|
-
C 77 ; WX 833 ; N a40 ; B 35 -14 798 705 ;
|
68
|
-
C 78 ; WX 816 ; N a41 ; B 35 -13 782 705 ;
|
69
|
-
C 79 ; WX 831 ; N a42 ; B 35 -14 796 705 ;
|
70
|
-
C 80 ; WX 923 ; N a43 ; B 35 -14 888 705 ;
|
71
|
-
C 81 ; WX 744 ; N a44 ; B 35 0 710 692 ;
|
72
|
-
C 82 ; WX 723 ; N a45 ; B 35 0 688 692 ;
|
73
|
-
C 83 ; WX 749 ; N a46 ; B 35 0 714 692 ;
|
74
|
-
C 84 ; WX 790 ; N a47 ; B 34 -14 756 705 ;
|
75
|
-
C 85 ; WX 792 ; N a48 ; B 35 -14 758 705 ;
|
76
|
-
C 86 ; WX 695 ; N a49 ; B 35 -14 661 706 ;
|
77
|
-
C 87 ; WX 776 ; N a50 ; B 35 -6 741 699 ;
|
78
|
-
C 88 ; WX 768 ; N a51 ; B 35 -7 734 699 ;
|
79
|
-
C 89 ; WX 792 ; N a52 ; B 35 -14 757 705 ;
|
80
|
-
C 90 ; WX 759 ; N a53 ; B 35 0 725 692 ;
|
81
|
-
C 91 ; WX 707 ; N a54 ; B 35 -13 672 704 ;
|
82
|
-
C 92 ; WX 708 ; N a55 ; B 35 -14 672 705 ;
|
83
|
-
C 93 ; WX 682 ; N a56 ; B 35 -14 647 705 ;
|
84
|
-
C 94 ; WX 701 ; N a57 ; B 35 -14 666 705 ;
|
85
|
-
C 95 ; WX 826 ; N a58 ; B 35 -14 791 705 ;
|
86
|
-
C 96 ; WX 815 ; N a59 ; B 35 -14 780 705 ;
|
87
|
-
C 97 ; WX 789 ; N a60 ; B 35 -14 754 705 ;
|
88
|
-
C 98 ; WX 789 ; N a61 ; B 35 -14 754 705 ;
|
89
|
-
C 99 ; WX 707 ; N a62 ; B 34 -14 673 705 ;
|
90
|
-
C 100 ; WX 687 ; N a63 ; B 36 0 651 692 ;
|
91
|
-
C 101 ; WX 696 ; N a64 ; B 35 0 661 691 ;
|
92
|
-
C 102 ; WX 689 ; N a65 ; B 35 0 655 692 ;
|
93
|
-
C 103 ; WX 786 ; N a66 ; B 34 -14 751 705 ;
|
94
|
-
C 104 ; WX 787 ; N a67 ; B 35 -14 752 705 ;
|
95
|
-
C 105 ; WX 713 ; N a68 ; B 35 -14 678 705 ;
|
96
|
-
C 106 ; WX 791 ; N a69 ; B 35 -14 756 705 ;
|
97
|
-
C 107 ; WX 785 ; N a70 ; B 36 -14 751 705 ;
|
98
|
-
C 108 ; WX 791 ; N a71 ; B 35 -14 757 705 ;
|
99
|
-
C 109 ; WX 873 ; N a72 ; B 35 -14 838 705 ;
|
100
|
-
C 110 ; WX 761 ; N a73 ; B 35 0 726 692 ;
|
101
|
-
C 111 ; WX 762 ; N a74 ; B 35 0 727 692 ;
|
102
|
-
C 112 ; WX 762 ; N a203 ; B 35 0 727 692 ;
|
103
|
-
C 113 ; WX 759 ; N a75 ; B 35 0 725 692 ;
|
104
|
-
C 114 ; WX 759 ; N a204 ; B 35 0 725 692 ;
|
105
|
-
C 115 ; WX 892 ; N a76 ; B 35 0 858 705 ;
|
106
|
-
C 116 ; WX 892 ; N a77 ; B 35 -14 858 692 ;
|
107
|
-
C 117 ; WX 788 ; N a78 ; B 35 -14 754 705 ;
|
108
|
-
C 118 ; WX 784 ; N a79 ; B 35 -14 749 705 ;
|
109
|
-
C 119 ; WX 438 ; N a81 ; B 35 -14 403 705 ;
|
110
|
-
C 120 ; WX 138 ; N a82 ; B 35 0 104 692 ;
|
111
|
-
C 121 ; WX 277 ; N a83 ; B 35 0 242 692 ;
|
112
|
-
C 122 ; WX 415 ; N a84 ; B 35 0 380 692 ;
|
113
|
-
C 123 ; WX 392 ; N a97 ; B 35 263 357 705 ;
|
114
|
-
C 124 ; WX 392 ; N a98 ; B 34 263 357 705 ;
|
115
|
-
C 125 ; WX 668 ; N a99 ; B 35 263 633 705 ;
|
116
|
-
C 126 ; WX 668 ; N a100 ; B 36 263 634 705 ;
|
117
|
-
C 128 ; WX 390 ; N a89 ; B 35 -14 356 705 ;
|
118
|
-
C 129 ; WX 390 ; N a90 ; B 35 -14 355 705 ;
|
119
|
-
C 130 ; WX 317 ; N a93 ; B 35 0 283 692 ;
|
120
|
-
C 131 ; WX 317 ; N a94 ; B 35 0 283 692 ;
|
121
|
-
C 132 ; WX 276 ; N a91 ; B 35 0 242 692 ;
|
122
|
-
C 133 ; WX 276 ; N a92 ; B 35 0 242 692 ;
|
123
|
-
C 134 ; WX 509 ; N a205 ; B 35 0 475 692 ;
|
124
|
-
C 135 ; WX 509 ; N a85 ; B 35 0 475 692 ;
|
125
|
-
C 136 ; WX 410 ; N a206 ; B 35 0 375 692 ;
|
126
|
-
C 137 ; WX 410 ; N a86 ; B 35 0 375 692 ;
|
127
|
-
C 138 ; WX 234 ; N a87 ; B 35 -14 199 705 ;
|
128
|
-
C 139 ; WX 234 ; N a88 ; B 35 -14 199 705 ;
|
129
|
-
C 140 ; WX 334 ; N a95 ; B 35 0 299 692 ;
|
130
|
-
C 141 ; WX 334 ; N a96 ; B 35 0 299 692 ;
|
131
|
-
C 161 ; WX 732 ; N a101 ; B 35 -143 697 806 ;
|
132
|
-
C 162 ; WX 544 ; N a102 ; B 56 -14 488 706 ;
|
133
|
-
C 163 ; WX 544 ; N a103 ; B 34 -14 508 705 ;
|
134
|
-
C 164 ; WX 910 ; N a104 ; B 35 40 875 651 ;
|
135
|
-
C 165 ; WX 667 ; N a106 ; B 35 -14 633 705 ;
|
136
|
-
C 166 ; WX 760 ; N a107 ; B 35 -14 726 705 ;
|
137
|
-
C 167 ; WX 760 ; N a108 ; B 0 121 758 569 ;
|
138
|
-
C 168 ; WX 776 ; N a112 ; B 35 0 741 705 ;
|
139
|
-
C 169 ; WX 595 ; N a111 ; B 34 -14 560 705 ;
|
140
|
-
C 170 ; WX 694 ; N a110 ; B 35 -14 659 705 ;
|
141
|
-
C 171 ; WX 626 ; N a109 ; B 34 0 591 705 ;
|
142
|
-
C 172 ; WX 788 ; N a120 ; B 35 -14 754 705 ;
|
143
|
-
C 173 ; WX 788 ; N a121 ; B 35 -14 754 705 ;
|
144
|
-
C 174 ; WX 788 ; N a122 ; B 35 -14 754 705 ;
|
145
|
-
C 175 ; WX 788 ; N a123 ; B 35 -14 754 705 ;
|
146
|
-
C 176 ; WX 788 ; N a124 ; B 35 -14 754 705 ;
|
147
|
-
C 177 ; WX 788 ; N a125 ; B 35 -14 754 705 ;
|
148
|
-
C 178 ; WX 788 ; N a126 ; B 35 -14 754 705 ;
|
149
|
-
C 179 ; WX 788 ; N a127 ; B 35 -14 754 705 ;
|
150
|
-
C 180 ; WX 788 ; N a128 ; B 35 -14 754 705 ;
|
151
|
-
C 181 ; WX 788 ; N a129 ; B 35 -14 754 705 ;
|
152
|
-
C 182 ; WX 788 ; N a130 ; B 35 -14 754 705 ;
|
153
|
-
C 183 ; WX 788 ; N a131 ; B 35 -14 754 705 ;
|
154
|
-
C 184 ; WX 788 ; N a132 ; B 35 -14 754 705 ;
|
155
|
-
C 185 ; WX 788 ; N a133 ; B 35 -14 754 705 ;
|
156
|
-
C 186 ; WX 788 ; N a134 ; B 35 -14 754 705 ;
|
157
|
-
C 187 ; WX 788 ; N a135 ; B 35 -14 754 705 ;
|
158
|
-
C 188 ; WX 788 ; N a136 ; B 35 -14 754 705 ;
|
159
|
-
C 189 ; WX 788 ; N a137 ; B 35 -14 754 705 ;
|
160
|
-
C 190 ; WX 788 ; N a138 ; B 35 -14 754 705 ;
|
161
|
-
C 191 ; WX 788 ; N a139 ; B 35 -14 754 705 ;
|
162
|
-
C 192 ; WX 788 ; N a140 ; B 35 -14 754 705 ;
|
163
|
-
C 193 ; WX 788 ; N a141 ; B 35 -14 754 705 ;
|
164
|
-
C 194 ; WX 788 ; N a142 ; B 35 -14 754 705 ;
|
165
|
-
C 195 ; WX 788 ; N a143 ; B 35 -14 754 705 ;
|
166
|
-
C 196 ; WX 788 ; N a144 ; B 35 -14 754 705 ;
|
167
|
-
C 197 ; WX 788 ; N a145 ; B 35 -14 754 705 ;
|
168
|
-
C 198 ; WX 788 ; N a146 ; B 35 -14 754 705 ;
|
169
|
-
C 199 ; WX 788 ; N a147 ; B 35 -14 754 705 ;
|
170
|
-
C 200 ; WX 788 ; N a148 ; B 35 -14 754 705 ;
|
171
|
-
C 201 ; WX 788 ; N a149 ; B 35 -14 754 705 ;
|
172
|
-
C 202 ; WX 788 ; N a150 ; B 35 -14 754 705 ;
|
173
|
-
C 203 ; WX 788 ; N a151 ; B 35 -14 754 705 ;
|
174
|
-
C 204 ; WX 788 ; N a152 ; B 35 -14 754 705 ;
|
175
|
-
C 205 ; WX 788 ; N a153 ; B 35 -14 754 705 ;
|
176
|
-
C 206 ; WX 788 ; N a154 ; B 35 -14 754 705 ;
|
177
|
-
C 207 ; WX 788 ; N a155 ; B 35 -14 754 705 ;
|
178
|
-
C 208 ; WX 788 ; N a156 ; B 35 -14 754 705 ;
|
179
|
-
C 209 ; WX 788 ; N a157 ; B 35 -14 754 705 ;
|
180
|
-
C 210 ; WX 788 ; N a158 ; B 35 -14 754 705 ;
|
181
|
-
C 211 ; WX 788 ; N a159 ; B 35 -14 754 705 ;
|
182
|
-
C 212 ; WX 894 ; N a160 ; B 35 58 860 634 ;
|
183
|
-
C 213 ; WX 838 ; N a161 ; B 35 152 803 540 ;
|
184
|
-
C 214 ; WX 1016 ; N a163 ; B 34 152 981 540 ;
|
185
|
-
C 215 ; WX 458 ; N a164 ; B 35 -127 422 820 ;
|
186
|
-
C 216 ; WX 748 ; N a196 ; B 35 94 698 597 ;
|
187
|
-
C 217 ; WX 924 ; N a165 ; B 35 140 890 552 ;
|
188
|
-
C 218 ; WX 748 ; N a192 ; B 35 94 698 597 ;
|
189
|
-
C 219 ; WX 918 ; N a166 ; B 35 166 884 526 ;
|
190
|
-
C 220 ; WX 927 ; N a167 ; B 35 32 892 660 ;
|
191
|
-
C 221 ; WX 928 ; N a168 ; B 35 129 891 562 ;
|
192
|
-
C 222 ; WX 928 ; N a169 ; B 35 128 893 563 ;
|
193
|
-
C 223 ; WX 834 ; N a170 ; B 35 155 799 537 ;
|
194
|
-
C 224 ; WX 873 ; N a171 ; B 35 93 838 599 ;
|
195
|
-
C 225 ; WX 828 ; N a172 ; B 35 104 791 588 ;
|
196
|
-
C 226 ; WX 924 ; N a173 ; B 35 98 889 594 ;
|
197
|
-
C 227 ; WX 924 ; N a162 ; B 35 98 889 594 ;
|
198
|
-
C 228 ; WX 917 ; N a174 ; B 35 0 882 692 ;
|
199
|
-
C 229 ; WX 930 ; N a175 ; B 35 84 896 608 ;
|
200
|
-
C 230 ; WX 931 ; N a176 ; B 35 84 896 608 ;
|
201
|
-
C 231 ; WX 463 ; N a177 ; B 35 -99 429 791 ;
|
202
|
-
C 232 ; WX 883 ; N a178 ; B 35 71 848 623 ;
|
203
|
-
C 233 ; WX 836 ; N a179 ; B 35 44 802 648 ;
|
204
|
-
C 234 ; WX 836 ; N a193 ; B 35 44 802 648 ;
|
205
|
-
C 235 ; WX 867 ; N a180 ; B 35 101 832 591 ;
|
206
|
-
C 236 ; WX 867 ; N a199 ; B 35 101 832 591 ;
|
207
|
-
C 237 ; WX 696 ; N a181 ; B 35 44 661 648 ;
|
208
|
-
C 238 ; WX 696 ; N a200 ; B 35 44 661 648 ;
|
209
|
-
C 239 ; WX 874 ; N a182 ; B 35 77 840 619 ;
|
210
|
-
C 241 ; WX 874 ; N a201 ; B 35 73 840 615 ;
|
211
|
-
C 242 ; WX 760 ; N a183 ; B 35 0 725 692 ;
|
212
|
-
C 243 ; WX 946 ; N a184 ; B 35 160 911 533 ;
|
213
|
-
C 244 ; WX 771 ; N a197 ; B 34 37 736 655 ;
|
214
|
-
C 245 ; WX 865 ; N a185 ; B 35 207 830 481 ;
|
215
|
-
C 246 ; WX 771 ; N a194 ; B 34 37 736 655 ;
|
216
|
-
C 247 ; WX 888 ; N a198 ; B 34 -19 853 712 ;
|
217
|
-
C 248 ; WX 967 ; N a186 ; B 35 124 932 568 ;
|
218
|
-
C 249 ; WX 888 ; N a195 ; B 34 -19 853 712 ;
|
219
|
-
C 250 ; WX 831 ; N a187 ; B 35 113 796 579 ;
|
220
|
-
C 251 ; WX 873 ; N a188 ; B 36 118 838 578 ;
|
221
|
-
C 252 ; WX 927 ; N a189 ; B 35 150 891 542 ;
|
222
|
-
C 253 ; WX 970 ; N a190 ; B 35 76 931 616 ;
|
223
|
-
C 254 ; WX 918 ; N a191 ; B 34 99 884 593 ;
|
224
|
-
EndCharMetrics
|
225
|
-
EndFontMetrics
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
x^E�A�1DQ$ !p$DB$D������3�_���,(�d�_ˣ��j�wa����W9$촙w�աɳ�Km��Wg��۹#���M�h��D�#C�_[A���ş�z��r<:�<l�5V�(�L����c�2w?��s3Q���b ��;��O����ݼUD�W�
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
���C���y�[�W
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
#
|
3
|
-
# This example demonstrates the basic functionality of Prawn's bounding boxes.
|
4
|
-
# Note that top level bounding boxes are positioned relative to the margin_box.
|
5
|
-
#
|
6
|
-
require "#{File.dirname(__FILE__)}/../example_helper.rb"
|
7
|
-
|
8
|
-
Prawn::Document.generate("bounding_boxes.pdf") do
|
9
|
-
|
10
|
-
# Generates a box with a top-left of [100,600] and a top-right of [300,600]
|
11
|
-
# The box automatically expands as the cursor moves down the page. Notice
|
12
|
-
# that the final coordinates are outlined by a top and bottom line drawn
|
13
|
-
# relatively using calculations from +bounds+.
|
14
|
-
#
|
15
|
-
bounding_box [100,600], :width => 200 do
|
16
|
-
move_down 10
|
17
|
-
text "The rain in spain falls mainly on the plains " * 5
|
18
|
-
move_down 20
|
19
|
-
stroke do
|
20
|
-
line bounds.top_left, bounds.top_right
|
21
|
-
line bounds.bottom_left, bounds.bottom_right
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
# Generates a bounding box from [100, cursor], [300, cursor - 200],
|
26
|
-
# where cursor is the current y position.
|
27
|
-
#
|
28
|
-
bounding_box [100,cursor], :width => 200, :height => 200 do
|
29
|
-
stroke do
|
30
|
-
circle_at [100,100], :radius => 100
|
31
|
-
line bounds.top_left, bounds.bottom_right
|
32
|
-
line bounds.top_right, bounds.bottom_left
|
33
|
-
end
|
34
|
-
|
35
|
-
# Generates a nested bonding box and strokes its boundaries. Note that
|
36
|
-
# this box is anchored relative to its parent bounding box, not the
|
37
|
-
# margin_box
|
38
|
-
bounding_box [50,150], :width => 100, :height => 100 do
|
39
|
-
stroke_bounds
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
#
|
3
|
-
# This example demonstrates the basic functionality of Prawn's bounding boxes.
|
4
|
-
# Note that top level bounding boxes are positioned relative to the margin_box.
|
5
|
-
#
|
6
|
-
require "#{File.dirname(__FILE__)}/../example_helper.rb"
|
7
|
-
|
8
|
-
Prawn::Document.generate("indentation.pdf") do
|
9
|
-
|
10
|
-
text "No indentation"
|
11
|
-
indent(20) do
|
12
|
-
text "Some indentation"
|
13
|
-
# Generates a box with a top-left of [100,600] and a top-right of [300,600]
|
14
|
-
# The box automatically expands as the cursor moves down the page. Notice
|
15
|
-
# that the final coordinates are outlined by a top and bottom line drawn
|
16
|
-
# relatively using calculations from +bounds+.
|
17
|
-
#
|
18
|
-
bounding_box [100,600], :width => 200 do
|
19
|
-
text "A little more indentation"
|
20
|
-
indent(20) do
|
21
|
-
text "And some more indentation"
|
22
|
-
indent(20) do
|
23
|
-
text "And some deeper indentation"
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
text "Some indentation"
|
28
|
-
end
|
29
|
-
indent(10) do
|
30
|
-
text "A bit of indentation"
|
31
|
-
end
|
32
|
-
|
33
|
-
text "No indentation"
|
34
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
#
|
3
|
-
# This example is mostly just for fun, and shows how nested bounding boxes
|
4
|
-
# can simplify calculations. See the other files in examples/bounding_box
|
5
|
-
# for more basic uses.
|
6
|
-
|
7
|
-
require "#{File.dirname(__FILE__)}/../example_helper.rb"
|
8
|
-
|
9
|
-
class Array
|
10
|
-
def combine(arr)
|
11
|
-
output = []
|
12
|
-
self.each do |i1|
|
13
|
-
arr.each do |i2|
|
14
|
-
output += [[i1,i2]]
|
15
|
-
end
|
16
|
-
end
|
17
|
-
output
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def recurse_bounding_box(pdf, max_depth=5, depth=1)
|
22
|
-
box = pdf.bounds
|
23
|
-
width = (box.width-15)/2
|
24
|
-
height = (box.height-15)/2
|
25
|
-
left_top_corners = [5, box.right-width-5].combine [box.top-5, height+5]
|
26
|
-
left_top_corners.each do |lt|
|
27
|
-
pdf.bounding_box(lt, :width=>width, :height=>height) do
|
28
|
-
pdf.stroke_bounds
|
29
|
-
recurse_bounding_box(pdf, max_depth, depth+1) if depth<max_depth
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
Prawn::Document.generate("russian_boxes.pdf") do |pdf|
|
35
|
-
recurse_bounding_box(pdf)
|
36
|
-
end
|
@@ -1,67 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
#
|
3
|
-
# This example demonstrates how nested bounding boxes work when the outer box is
|
4
|
-
# stretchy and includes several inner boxes of different sizes.
|
5
|
-
|
6
|
-
require "#{File.dirname(__FILE__)}/../example_helper.rb"
|
7
|
-
|
8
|
-
Prawn::Document.generate("stretched_nesting.pdf", :page_layout => :landscape) do
|
9
|
-
|
10
|
-
def stroke_dashed_bounds
|
11
|
-
dash(1)
|
12
|
-
stroke_bounds
|
13
|
-
undash
|
14
|
-
end
|
15
|
-
|
16
|
-
bounding_box [100,400], :width => 500 do
|
17
|
-
|
18
|
-
bounding_box [0, bounds.top], :width => 200, :height => 100 do
|
19
|
-
stroke_bounds
|
20
|
-
end
|
21
|
-
|
22
|
-
bounding_box [200, bounds.top], :width => 150 do
|
23
|
-
indent(5) do
|
24
|
-
text "This box is longest, so it stretches the parent box. \n"*5
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
bounding_box [350, bounds.top], :width => 150 do
|
29
|
-
text "I AM SANTA CLAUS!!!"
|
30
|
-
end
|
31
|
-
|
32
|
-
stroke_dashed_bounds
|
33
|
-
|
34
|
-
end
|
35
|
-
|
36
|
-
bounding_box [100, 250], :width => 500 do
|
37
|
-
|
38
|
-
bounding_box [0, bounds.top], :width => 100, :height => 100 do
|
39
|
-
text "1"
|
40
|
-
stroke_bounds
|
41
|
-
end
|
42
|
-
|
43
|
-
bounding_box [125, bounds.top], :width => 50, :height => 25 do
|
44
|
-
text "2"
|
45
|
-
stroke_bounds
|
46
|
-
end
|
47
|
-
|
48
|
-
bounding_box [200, bounds.top - 50], :width => 50, :height => 125 do
|
49
|
-
text "3"
|
50
|
-
stroke_bounds
|
51
|
-
end
|
52
|
-
|
53
|
-
bounding_box [350, bounds.top - 100], :width => 20, :height => 20 do
|
54
|
-
text "4"
|
55
|
-
stroke_bounds
|
56
|
-
end
|
57
|
-
|
58
|
-
bounding_box [400, bounds.height - 150], :width => 100, :height => 100 do
|
59
|
-
text "5"
|
60
|
-
stroke_bounds
|
61
|
-
end
|
62
|
-
|
63
|
-
stroke_dashed_bounds
|
64
|
-
|
65
|
-
end
|
66
|
-
|
67
|
-
end
|