PDF
[ class tree: PDF ] [ index: PDF ] [ all elements ]

Procedural File: pdf.inc

Source Location: /lib/pdf.inc



Page Details:

LDAP Account Manager PDF printing library. It consists of lamPDF class, the createModulePDF() function that may be called by other pages and furthermore some helper functions.



Tags:

author:  Michael Duergner
author:  Roland Gruber


Includes:

include_once('pdfstruct.inc') [line 41]
access to PDF configuration files

include_once('xml_parser.inc') [line 38]
XML functions






LAMPDF_LINEWIDTH [line 35]

LAMPDF_LINEWIDTH = 190
PDF line width


[ Top ]




createModulePDF [line 57]

String createModulePDF( array $accounts, [string $pdf_structure = "default"], [$returnAsString $returnAsString = false])

This function creates the PDF output of one or more accounts.



Tags:

return:  PDF file name


Parameters

array   $accounts   A numbered array containing all accounts the PDF page should be created for. The entries of the array must be AccountContainer objects.
string   $pdf_structure   The filename of the structure definition that should be used to create the PDF page. If not submitted the 'default.user' structure definition for the appropriate account type.
$returnAsString   $returnAsString   returns the PDF output as String value instead of writing it to a file
[ Top ]



getSectionHeadline [line 168]

string getSectionHeadline( string $line)

Creates a section headline.



Tags:

return:  XML code for headline


Parameters

string   $line   section name
[ Top ]



processAttributes [line 296]

array processAttributes( string $attrs, [array $return = array()])

Processes width, height and alignment attributes.



Tags:

return:  XML code


Parameters

string   $attrs   attributes
array   $return   XML code
[ Top ]



processFormatTags [line 263]

array processFormatTags( string $line, string $style)

Formats the XML code.



Tags:

return:  XML code


Parameters

string   $line   XML code of PDF entry
string   $style   style commands
[ Top ]



processLine [line 187]

array processLine( string $line, [boolean $first_td = true], $fontName)

Creates the XML code for an PDF entry.



Tags:

return:  XML codes


Parameters

string   $line   XML code of PDF entry
boolean   $first_td   True if this is the first column
   $fontName  
[ Top ]



Documentation generated on Sun, 25 Mar 2012 19:35:49 +0200 by phpDocumentor 1.4.1