DESCRIPTION

PDF::Boxer enables the creation of pdf documents using rows, columns, and grids for layout. An xml styled document is used to specify the contents of the document and is parsed into a block of data by PDF::Boxer::SpecParser and passed to PDF::Boxer

register_box

box_lookup

MARKUP

For a single page document the parent element may be a row, column, or grid. Multiple pages can be generated by wrapping more than one of these elements with a doc element.

ELEMENTS

column

a column stacks elements vertically. Each element will be as wide as the column's content space. If one or more children have the "grow" attribute set then they will be stretched vertically to fill the column.

row

a row places it's children horizontally. If one or more children have the "grow" attribute set then they will be stretched horizontally to fill the row.

grid

a grid is a column with rows for children. The width of the rows' child elements are locked vertically (like an html table).

You can now set the hborder and/or vborder attributes an a grid to display gridlines.

eg <grid hborder="1" vborder="1">

text

the text element contains.. text! Text is wrapped to fith the width of it's container if necessary.

image

the image element places an image in the PDF.. whoda thunkit, eh? the image can be scaled to a percentage of it's original size.

ATTRIBUTES

align

align="right"

align right or center instead of the default left.

background

background="#FF0000"

background is set as a hexadecimal color.

border_color

border_color="#FF0000"

border_color is set as a hexadecimal color.

font

grow

when set to true, the element will expand to take up any available space.