ONO::Lib::PDF::Elements::Train

This module generates specific PDF content.

Functions

train();

This generates a train image, supporting both PDF and HTML output.

Switches:

-B Black & White
-C EU comma conversion for data
-D Dummy engine (rounded rectangle)
-H HTML mode (as PDF is default)
-I input field on empty car (HTML mode only)

x / y x = 0 is always the position on the left y = 0 is top of track, bottom of train, so that train is always on track this will be ignored in HTML mode!

type train, track, engine, or car - can also be type:subtype for example

width the width of the track, engine, car, etc... height the height of the train, from standard roof top to track track height will be adjusted automatically

length entire track length, or engine/car length

opt specific options color specific colors

ONO::Lib::PDF::Elements::Train->train( $canvas, $x, $y, $type, $width, $height, $switches, $opt_main, $COLOR_MAIN, $opt_ref, $color_ref, $vars_ref );

train_canvas_wrapper();

Canvas wraper for train HTML mode.

ONO::Lib::PDF::Elements::Train->train_canvas_wrapper( $HTML, $width, $height, $switches, $id, $text, $placeholder, $vars_ref );

Sub-Modules

none

Dependencies

Code