ryxeo-glpi-git / htdocs / epack / lib / tests / tutoriel2.php @ 1c14bcc4
Historique | Voir | Annoter | Télécharger (960 octets)
1 |
<?php
|
---|---|
2 |
|
3 |
/**
|
4 |
* Tutoriel file
|
5 |
* Description : Adding a single image to the document
|
6 |
* You need PHP 5.2 at least
|
7 |
* You need Zip Extension or PclZip library
|
8 |
*
|
9 |
* @copyright GPL License 2008 - Julien Pauli - Cyril PIERRE de GEYER - Anaska (http://www.anaska.com)
|
10 |
* @license http://www.gnu.org/copyleft/gpl.html GPL License
|
11 |
* @version 1.3
|
12 |
*/
|
13 |
|
14 |
|
15 |
// Make sure you have Zip extension or PclZip library loaded
|
16 |
// First : include the librairy
|
17 |
require_once('../library/odf.php'); |
18 |
|
19 |
$odf = new odf("tutoriel2.odt"); |
20 |
|
21 |
$odf->setVars('titre','Anaska formation'); |
22 |
|
23 |
$message = "Anaska, leader Français de la formation informatique sur les technologies |
24 |
Open Source, propose un catalogue de plus de 50 formations dont certaines préparent
|
25 |
aux certifications Linux, MySQL, PHP et PostgreSQL.";
|
26 |
|
27 |
$odf->setVars('message', $message); |
28 |
|
29 |
$odf->setImage('image', './images/anaska.jpg'); |
30 |
|
31 |
// We export the file
|
32 |
$odf->exportAsAttachedFile();
|
33 |
|
34 |
?>
|