ONO::Lib::PDF::Elements::Grid

This module generates specific PDF content.

Functions

grid();

This generates a grid.

spacing is required -> integers draw a squared grid

-> "x:y" allows for grids that are not square
-> "x/y" will draw a grid with x cols and y rows (spacing will thus be calculated)

outset (optional) allows to draw lines beyond the actual grid (top, bottom, left & right)

color is the background of the entire grid -> "g/r/c" will colorize background, top row, left col, creating a spreadsheet-like grid (all optional), top row has priority (always on top of left grid)

data_ref -> array containing data to be filled into the created grid boxes, will simply fill from left to right, top to bottom

-A autocrop, will limit the global size to spacing values (otherwise the result may be larger than
the indicated grid size)
-C comma in EU format (replaces commas in ALL cell data)
-f font options enabled (also disables default center text, required for font_ref)
-l light (combinable with -L)
-L even lighter (combinable with -l)
-m millimeter mode (only works if spacing = 1, will highlight 5 mm grid)
-M math symbol processing
-X clear all data that's not in the header row/col

ONO::Lib::PDF::Elements::Grid->grid( $canvas, $x1, $y1, $x2, $y2, $spacing, $weight_inner, $weight_outer, $outset, $color, $switches, $data_ref, $color_line, $font_ref );

Sub-Modules

none

Dependencies

Optional CPAN Modules

The following modules may be optional, but they are probably required for all features to work properly.

Code