Skip to main content Crate pdf Copy item path Source edit read Canvas drawing on one page (Document::canvas). Coordinates are points (1/72 inch) from the
origin the canvas was made with; what it draws goes into the page when it is dropped, with
every save it left open restored. Several canvases on one page draw one after the other. Date a date of the document information: local time and its offset from UTC Document a PDF document being built: its pages, fonts, images, outlines and information Encryption how a document is encrypted: the cipher, the passwords, the permissions FieldStyle what a field looks like FontId a font of a document (Document::add_font) FontMetrics the vertical metrics of a font in its own units (Document::font_metrics) Glyph a shaped glyph for Canvas::glyphs: Document::shape gives them, a text layout that shaped
its lines already builds its own Hatch parallel lines for Canvas::fill_hatch; two hatches over the same path cross Image an image for Document::add_image: a JPEG passed through, or 8-bit pixels (gray, RGB, RGBA,
a gfx surface) with an optional alpha channel ImageId an image of a document (Document::add_image) Info the document information (the Info dictionary and the same in XMP metadata); unset fields
are left out Matrix an affine matrix as PDF writes it (a b c d e f cm): x’ = a x + c y + e, y’ = b x + d y + f OutlineId an outline item (Document::add_outline) PageId a page of a document (Document::add_page), counted from 0 Path a path: subpaths of lines and cubic curves, built once and drawn on any canvas
(Canvas::append_path) or built on the canvas itself (its move_to, line_to, …) Permissions what a user who opened the document with the user password may do (ISO 32000-1, Table 22) Rgb an RGB colour, each part 0 to 1 (DeviceRGB) Shading a gradient for Canvas::shade and Canvas::fill_shading TextField a text field Align how a text field’s lines sit (/Q) Cipher the cipher of an encrypted document Dest a place in the document for links and outline items Error FieldFont the font of a field’s text FillRule which parts of a path a fill covers (PDF f / f*) LineCap the ends of open subpaths and dashes (PDF J) LineJoin the corners of a stroke (PDF j) Origin where a canvas puts (0, 0) and which way y grows ShadingKind the geometry of a gradient, in the user space of the canvas at the time it is painted TextMode how text is painted (PDF Tr) A3 A3 portrait in points A4 A4 portrait in points A5 A5 portrait in points LEGAL US Legal portrait in points LETTER US Letter portrait in points PAGE_MAX PAGE_MIN the smallest and largest page side PDF readers take (ISO 32000-1, Annex C) inch inches in points mm millimetres in points