Kernel::WebApp::Util::Statistic::PDF

NAME

Kernel::WebApp::Util::Statistic::PDF – Helper class for the statistic PDF functionality.

PUBLIC INTERFACE

has UserID

Attribute that holds the record user id.

has Language

Attribute that holds the language.

has UserData

Attribute that holds all user information.

has LanguageObject

This attribute contains the language object.

_BuildUserData()

Initializes the attribute UserData.

_BuildLanguageObject()

Initializes the attribute LanguageObject.

GeneratePDF()

Generates a PDF file for the given statistic data.

    my $PDFString = $UtilStatisticPDFObject->GeneratePDF(
        Statistic     => \%Statistic,           result of C<StatsGet> call
        Title         => 'Test',
        HeadData      => $StatisticHeadData,
        StatisticData => \@StatisticData,       result of C<StatsResultCacheGet> call
        TimeZone      => 'Europe/Berlin',
        UserID        => 123,
    );

Returns

Scroll to Top