145 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			145 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 | 
						|
<html>
 | 
						|
<head>
 | 
						|
  <meta content="text/html; charset=ISO-8859-15"
 | 
						|
 http-equiv="content-type">
 | 
						|
  <title>PDF templates</title>
 | 
						|
  <link rel="stylesheet" type="text/css" href="style/layout.css">
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
 | 
						|
<p align="center">
 | 
						|
<script type="text/javascript"><!--
 | 
						|
google_ad_client = "pub-4179059556107138";
 | 
						|
google_alternate_ad_url = "http://lam.sourceforge.net/google_adsense_script.html";
 | 
						|
google_ad_width = 728;
 | 
						|
google_ad_height = 90;
 | 
						|
google_ad_format = "728x90_as";
 | 
						|
google_ad_type = "text_image";
 | 
						|
google_ad_channel ="";
 | 
						|
google_page_url = document.location;
 | 
						|
google_color_border = "EEEEEE";
 | 
						|
google_color_bg = "FFFFFF";
 | 
						|
google_color_link = "0000FF";
 | 
						|
google_color_url = "008000";
 | 
						|
google_color_text = "000000";
 | 
						|
//--></script>
 | 
						|
<script type="text/javascript"
 | 
						|
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
 | 
						|
</script>
 | 
						|
</p>
 | 
						|
 | 
						|
 | 
						|
<h1 style="text-align: center;">PDF templates<br>
 | 
						|
</h1>
 | 
						|
<br>
 | 
						|
Every PDF structure is saved as a single file in <span
 | 
						|
 style="font-weight: bold;">config/pdf</span>. The
 | 
						|
file extension is the account type (user, group, ...) plus ".xml" (e.g.
 | 
						|
default.user.xml).<br>
 | 
						|
<br>
 | 
						|
<h2>Format</h2>
 | 
						|
The root tag is <span style="font-weight: bold;"><pdf></span>
 | 
						|
with the attributes <span
 | 
						|
 style="font-weight: bold; font-style: italic;">filename</span> for the
 | 
						|
logo and <span style="font-weight: bold; font-style: italic;">headline</span>
 | 
						|
for the title.<br>
 | 
						|
<br>
 | 
						|
There are two types of subentries in <pdf>:<br>
 | 
						|
<ul>
 | 
						|
  <li>sections</li>
 | 
						|
  <li>text<br>
 | 
						|
  </li>
 | 
						|
</ul>
 | 
						|
<h3>Sections:</h3>
 | 
						|
Sections are parts of the PDF file where data from the account profiles
 | 
						|
(e.g. LDAP attributes) is shown. Each section has a title and a list of
 | 
						|
entries.<br>
 | 
						|
<br>
 | 
						|
The title is defined with the <span
 | 
						|
 style="font-weight: bold; font-style: italic;">name</span> attribute
 | 
						|
inside the section tag. If the title begins with a "_" then LAM
 | 
						|
interprets it as entry. This means that LAM will insert the value part
 | 
						|
of this entry here.<br>
 | 
						|
<br>
 | 
						|
Each section has a list of subentries which are defined with the <span
 | 
						|
 style="font-weight: bold;"><entry></span> tag. The have only one
 | 
						|
attribute which is <span style="font-weight: bold;">name</span> and
 | 
						|
contains the identifier of this entry.<br>
 | 
						|
<br>
 | 
						|
<h3>Text:</h3>
 | 
						|
LAM allows to display a fixed text in the PDF which is defined with the
 | 
						|
<span style="font-weight: bold;"><text></span> tag. The text is
 | 
						|
just written inside the tags.<br>
 | 
						|
<br>
 | 
						|
<br>
 | 
						|
<br>
 | 
						|
<span style="font-weight: bold;">Example:</span><br
 | 
						|
 style="font-weight: bold;">
 | 
						|
<br>
 | 
						|
<pdf type="user" filename="printLogo.jpg" headline="LDAP Account
 | 
						|
Manager"><br>
 | 
						|
    <text>This document includes your personal
 | 
						|
account settings.</text><br>
 | 
						|
    <section name="Personal User Infos"><br>
 | 
						|
        <entry
 | 
						|
name="inetOrgPerson_givenName" /><br>
 | 
						|
        <entry name="inetOrgPerson_sn"
 | 
						|
/><br>
 | 
						|
        <entry
 | 
						|
name="inetOrgPerson_street" /><br>
 | 
						|
        <entry
 | 
						|
name="inetOrgPerson_postalCode" /><br>
 | 
						|
        <entry
 | 
						|
name="inetOrgPerson_postalAddress" /><br>
 | 
						|
        <entry
 | 
						|
name="inetOrgPerson_mail" /><br>
 | 
						|
        <entry
 | 
						|
name="inetOrgPerson_telephoneNumber" /><br>
 | 
						|
        <entry
 | 
						|
name="inetOrgPerson_mobileTelephoneNumber" /><br>
 | 
						|
        <entry
 | 
						|
name="inetOrgPerson_facsimileTelephoneNumber" /><br>
 | 
						|
    </section><br>
 | 
						|
    <section name="Unix User Settings"><br>
 | 
						|
        <entry name="posixAccount_uid"
 | 
						|
/><br>
 | 
						|
        <entry
 | 
						|
name="posixAccount_userPassword" /><br>
 | 
						|
        <entry
 | 
						|
name="posixAccount_primaryGroup" /><br>
 | 
						|
        <entry
 | 
						|
name="posixAccount_additionalGroups" /><br>
 | 
						|
        <entry
 | 
						|
name="posixAccount_homeDirectory" /><br>
 | 
						|
        <entry
 | 
						|
name="posixAccount_loginShell" /><br>
 | 
						|
    </section><br>
 | 
						|
</pdf><br>
 | 
						|
<br>
 | 
						|
<br>
 | 
						|
 | 
						|
<p align="center">
 | 
						|
<script type="text/javascript"><!--
 | 
						|
google_ad_client = "pub-4179059556107138";
 | 
						|
google_alternate_ad_url = "http://lam.sourceforge.net/google_adsense_script.html";
 | 
						|
google_ad_width = 728;
 | 
						|
google_ad_height = 90;
 | 
						|
google_ad_format = "728x90_as";
 | 
						|
google_ad_type = "text_image";
 | 
						|
google_ad_channel ="";
 | 
						|
google_page_url = document.location;
 | 
						|
google_color_border = "EEEEEE";
 | 
						|
google_color_bg = "FFFFFF";
 | 
						|
google_color_link = "0000FF";
 | 
						|
google_color_url = "008000";
 | 
						|
google_color_text = "000000";
 | 
						|
//--></script>
 | 
						|
<script type="text/javascript"
 | 
						|
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
 | 
						|
</script>
 | 
						|
</p>
 | 
						|
 | 
						|
</body>
 | 
						|
</html>
 |