class Hpdf::LetterDINA4

Overview

Letter following the german national standard for page sizes.

Direct Known Subclasses

Defined in:

hpdf/letter.cr

Constant Summary

DIN_A4_HEIGHT = 297
DIN_A4_WIDTH = 210

Instance Method Summary

Instance methods inherited from class Hpdf::Page

arc(x : Number, y : Number, ray : Number, ang1 : Number, ang2 : Number) arc, begin_text begin_text, build(&) build, char_space : Float32 char_space, char_space=(value : Number) char_space=, circle(x : Number, y : Number, ray : Number) circle, clip clip, close_path close_path, close_path_eofill_stroke close_path_eofill_stroke, close_path_fill_stroke close_path_fill_stroke, close_path_stroke close_path_stroke, cmyk_fill : CMYK cmyk_fill, cmyk_stroke : CMYK cmyk_stroke, concat(a : Number, b : Number, c : Number, d : Number, x : Number, y : Number) concat, context(&) context, create_destination : Destination create_destination, create_link_annotation(rect : Rectangle, dst : Destination) : LinkAnnotation create_link_annotation, create_text_annotation(rect : Rectangle, text : String, encoder : Encoder | Nil = nil) : TextAnnotation create_text_annotation, create_uri_link_annotation(rect : Rectangle, uri : String) create_uri_link_annotation, current_font : Font | Nil current_font, current_font_size : Float32 current_font_size, current_pos : Point current_pos, current_text_pos : Point current_text_pos, curve_to(x1 : Number, y1 : Number, x2 : Number, y2 : Number, x3 : Number, y3 : Number)
curve_to(p1 : Point, p2 : Point, p3 : Point)
curve_to
, curve_to2(x1 : Number, y1 : Number, x2 : Number, y2 : Number)
curve_to2(p1 : Point, p2 : Point)
curve_to2
, curve_to3(x1 : Number, y1 : Number, x2 : Number, y2 : Number)
curve_to3(p1 : Point, p2 : Point)
curve_to3
, dash dash, dpi=(dpi : Number) dpi=, draw_image(image : Image, x : Number, y : Number, width : Number, height : Number)
draw_image(image : Image, rect : Rectangle)
draw_image
, draw_rectangle(x : Number, y : Number, w : Number, h : Number, *, line_width lw : Number = 1)
draw_rectangle(rect : Rectangle, *, line_width lw = 1)
draw_rectangle
, end_path end_path, eoclip eoclip, eofill eofill, eofill_stroke eofill_stroke, execute_x_object(image : Image) execute_x_object, fill fill, fill_stroke fill_stroke, filling_color_space : ColorSpace filling_color_space, flat : Float32 flat, font : Hpdf::Font? font, g_mode g_mode, g_restore g_restore, g_save g_save, g_state_depth : Int32 g_state_depth, graphics_mode : GMode graphics_mode, gray_fill : Float32 gray_fill, gray_fill=(value : Number) gray_fill=, gray_stroke : Float32 gray_stroke, gray_stroke=(value : Number) gray_stroke=, height : Int32 height, height=(h : Number) height=, horizontal_scaling : Float32 horizontal_scaling, horizontal_scalling=(value : Number) horizontal_scalling=, line_cap : LineCap line_cap, line_cap=(line_cap : LineCap) line_cap=, line_join : LineJoin line_join, line_join=(line_join : LineJoin) line_join=, line_to(x : Number, y : Number)
line_to(p : Point)
line_to
, line_width : Float32 line_width, line_width=(line_width : Number) line_width=, measure_text(text : String, *, width : Number, word_wrap : Bool = true) : MeasuredText measure_text, measure_text_width(text : String) : MeasuredText measure_text_width, miter_limit : Float32 miter_limit, miter_limit=(limit : Number) miter_limit=, move_text_pos(x : Number, y : Number) move_text_pos, move_to(x : Number, y : Number)
move_to(p : Point)
move_to
, move_to_next_line move_to_next_line, page_move_text_pos2(x : Number, y : Number) page_move_text_pos2, path(x : Number, y : Number, &) path, rectangle(x : Number, y : Number, w : Number, h : Number)
rectangle(r : Rectangle)
rectangle
, reset_dash! reset_dash!, rgb_fill : RGB rgb_fill, rgb_stroke : RGB rgb_stroke, rotate=(angle : Number) rotate=, set_cmyk_fill(c : Number, m : Number, y : Number, k : Number) set_cmyk_fill, set_cmyk_stroke(c : Number, m : Number, y : Number, k : Number) set_cmyk_stroke, set_dash(pattern : Array(Number), *, phase = 0) set_dash, set_font_and_size(font : Hpdf::Font, size : Number)
set_font_and_size(font : String, size : Number)
set_font_and_size
, set_rgb_fill(r : Number, g : Number, b : Number) set_rgb_fill, set_rgb_stroke(r : Number, g : Number, b : Number) set_rgb_stroke, set_size(size : PageSizes, direction : PageDirection = PageDirection::Portrait) set_size, set_slide_show(style : TransitionStyle, disp_time : Number, trans_time : Number = 1) set_slide_show, set_text_matrix(a : Number, b : Number, c : Number, d : Number, x : Number, y : Number) set_text_matrix, show_text(text : String) show_text, show_text_next_line(text : String) show_text_next_line, show_text_next_line_ex(text : String, word_space : Number, char_space : Number) show_text_next_line_ex, stroke stroke, stroking_color_space : ColorSpace stroking_color_space, table(rect : Rectangle, line_width lw : Number = 1, spacing sp : Number = 0, fixed_row_height fwh : Number = 0, &)
table(*, x : Number, y : Number, width : Number, height : Number, line_width lw : Number = 1, fixed_row_height fwh : Number = 0, spacing sp : Number = 0, &)
table
, text(name = nil, size = nil, *, encoding enc : String = @encoding, &) text, text_end text_end, text_leading=(value : Number) text_leading=, text_out(x : Number | Symbol, y : Number | Symbol, text : String) text_out, text_rect(left : Number, top : Number, right : Number, bottom : Number, text : String, *, align : TextAlignment = TextAlignment::Left) : Number
text_rect(rect : Rectangle, text : String, *, align : TextAlignment = TextAlignment::Left) : Number
text_rect
, text_rendering_mode : TextRenderingMode text_rendering_mode, text_rendering_mode=(mode : TextRenderingMode) text_rendering_mode=, text_rise : Float32 text_rise, text_rise=(value : Number) text_rise=, text_width(text : String) : Float32 text_width, to_unsafe : LibHaru::Page to_unsafe, trans_matrix : TransMatrix trans_matrix, use_encoding(encoding : String, &) use_encoding, use_font(name, size, *, encoding enc : String | Nil = @encoding) use_font, width : Int32 width, width=(w : Number) width=, word_space : Float32 word_space, word_space=(value : Number) word_space=

Constructor methods inherited from class Hpdf::Page

new(page : LibHaru::Page, doc : Doc) new

Instance methods inherited from module Hpdf::Helper

bool(val : Bool) : Int32 bool, nilable_str(v : Pointer(UInt8)) : String | Nil nilable_str, real(val : Number) : LibHaru::Real real, uint(val : Number) : LibHaru::UInt uint, uint16(val : Number) : UInt16 uint16

Instance Method Detail

def mm(mm : Number) : Number #

mm converts the passed values to points, usable in PDF documents.

  • mm the value in milimeters

[View source]