| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta content="text/html; charset=ISO-8859-15" |
| 5 | http-equiv="content-type"> |
| 6 | <title>PDF templates</title> |
| 7 | <link rel="stylesheet" type="text/css" href="style/layout.css"> |
| 8 | <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"> |
| 9 | </head> |
| 10 | <body> |
| 11 | <h1 style="text-align: center;">PDF templates<br> |
| 12 | </h1> |
| 13 | <br> |
| 14 | Every PDF structure is saved as a single file in <span |
| 15 | style="font-weight: bold;">config/pdf</span>. The |
| 16 | file extension is the account type (user, group, ...) plus ".xml" (e.g. |
| 17 | default.user.xml).<br> |
| 18 | <br> |
| 19 | <h2>Format</h2> |
| 20 | The root tag is <span style="font-weight: bold;"><pdf></span> |
| 21 | with the attributes <span |
| 22 | style="font-weight: bold; font-style: italic;">filename</span> for the |
| 23 | logo and <span style="font-weight: bold; font-style: italic;">headline</span> |
| 24 | for the title.<br> |
| 25 | <br> |
| 26 | There are two types of subentries in <pdf>:<br> |
| 27 | <ul> |
| 28 | <li>sections</li> |
| 29 | <li>text<br> |
| 30 | </li> |
| 31 | </ul> |
| 32 | <h3>Sections:</h3> |
| 33 | Sections are parts of the PDF file where data from the account profiles |
| 34 | (e.g. LDAP attributes) is shown. Each section has a title and a list of |
| 35 | entries.<br> |
| 36 | <br> |
| 37 | The title is defined with the <span |
| 38 | style="font-weight: bold; font-style: italic;">name</span> attribute |
| 39 | inside the section tag. If the title begins with a "_" then LAM |
| 40 | interprets it as entry. This means that LAM will insert the value part |
| 41 | of this entry here.<br> |
| 42 | <br> |
| 43 | Each section has a list of subentries which are defined with the <span |
| 44 | style="font-weight: bold;"><entry></span> tag. The have only one |
| 45 | attribute which is <span style="font-weight: bold;">name</span> and |
| 46 | contains the identifier of this entry.<br> |
| 47 | <br> |
| 48 | <h3>Text:</h3> |
| 49 | LAM allows to display a fixed text in the PDF which is defined with the |
| 50 | <span style="font-weight: bold;"><text></span> tag. The text is |
| 51 | just written inside the tags.<br> |
| 52 | <br> |
| 53 | <br> |
| 54 | <br> |
| 55 | <span style="font-weight: bold;">Example:</span><br |
| 56 | style="font-weight: bold;"> |
| 57 | <br> |
| 58 | <pdf type="user" filename="printLogo.jpg" headline="LDAP Account |
| 59 | Manager"><br> |
| 60 | <text>This document includes your personal |
| 61 | account settings.</text><br> |
| 62 | <section name="Personal User Infos"><br> |
| 63 | <entry |
| 64 | name="inetOrgPerson_givenName" /><br> |
| 65 | <entry name="inetOrgPerson_sn" |
| 66 | /><br> |
| 67 | <entry |
| 68 | name="inetOrgPerson_street" /><br> |
| 69 | <entry |
| 70 | name="inetOrgPerson_postalCode" /><br> |
| 71 | <entry |
| 72 | name="inetOrgPerson_postalAddress" /><br> |
| 73 | <entry |
| 74 | name="inetOrgPerson_mail" /><br> |
| 75 | <entry |
| 76 | name="inetOrgPerson_telephoneNumber" /><br> |
| 77 | <entry |
| 78 | name="inetOrgPerson_mobileTelephoneNumber" /><br> |
| 79 | <entry |
| 80 | name="inetOrgPerson_facsimileTelephoneNumber" /><br> |
| 81 | </section><br> |
| 82 | <section name="Unix User Settings"><br> |
| 83 | <entry name="posixAccount_uid" |
| 84 | /><br> |
| 85 | <entry |
| 86 | name="posixAccount_userPassword" /><br> |
| 87 | <entry |
| 88 | name="posixAccount_primaryGroup" /><br> |
| 89 | <entry |
| 90 | name="posixAccount_additionalGroups" /><br> |
| 91 | <entry |
| 92 | name="posixAccount_homeDirectory" /><br> |
| 93 | <entry |
| 94 | name="posixAccount_loginShell" /><br> |
| 95 | </section><br> |
| 96 | </pdf><br> |
| 97 | <br> |
| 98 | <br> |
| 99 | </body> |
| 100 | </html> |