allows the user to create templates for the PDF output.
These templates are saved as files in config/pdf
This is the start page of the PDF
. The user can select to add/modify/remove selected PDF
The list of existing PDF profiles is returned by getPDFStructureDefinitions()
. It includes all
structure names without file extensions for a given account type.
Depending on the selection of the user he is forwarded to pdfpage.php
The user can edit the PDF structures on this page.
The structure is loaded with loadPDFStructureDefinitions()
. If it
does not yet exist then the default structure is loaded.
It is stored in $_SESSION['currentPDFStructure']
(sections) and $_SESSION['currentPageDefinitions']
(head line and logo).
At the top of the page the head line and logo can be edited. The list
of available logos is retrieved with getAvailableLogos()
The sections on the left side are displayed like they are defined in $_SESSION['currentPDFStructure']
Each item has links to move or delete it. Section titles may be changed.
The list of available PDF entries on the right side is retrieved from getAvailablePDFFields()
Near the bottom there the user can add a new section. The list of
available PDF entries is retrieved as above.
When the user pushes one of the buttons or clicks on a link then there
are several actions:
- Abort button: The user is
redirected back to pdfmain.php.
- Save button: The
structure name is checked for correctness and the file is saved with savePDFStructureDefinitions()
- Add section button: LAM
adds a static text or section to the structure.
- Add entry button: Adds a
new entry to the selected section.
- Change name button:
Changes the name of the section title or the section attribute.
- Remove entry link: If the
entry is a section then all parts of this section are removed.
Otherwise a single entry is removed.
- Move up/down links: The
entry or section is moved up or down.
is an array that contains all XML tags of the PDF structure. If you
want to modify the structure always remember to put the opening and
closing tags at the right place.
When the user selected to delete a structure in pdfmain.php
he is redirected to
LAM will ask once again if the user is sure to delete the structure. If
this is the case the structure will be deleted with deletePDFStructureDefinition()