# example

1. <?php
3. /**
4. * Inserts a text in cursive format.
5. *
6. * @category Phpdocx
7. * @package examples
8. * @subpackage easy
9. * @copyright Copyright (c) Narcea Producciones Multimedia S.L.
10. * (http://www.2mdc.com)
11. * @license http://www.phpdocx.com/wp-content/themes/lightword/pro_license.php
12. * @version 3.0
13. * @link http://www.phpdocx.com
14. * @since File available since Release 3.0
15. */
16. require_once '../../classes/CreateDocx.inc';
18. $docx = new CreateDocx();
20. $text = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, ' .
21. 'sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut ' .
22. 'enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut' .
23. 'aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit ' .
24. 'in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' .
25. 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui.';
27. $paramsText = array(
28. 'i' => 'single',
29. 'jc' => 'distribute',
30. 'sz' => 14,
31. 'color' => '76923C'
32. );
33. $docx->addText($text, $paramsText);
35. $docx->createDocx('../docx/example_textCursive');

Documentation generated on Tue, 21 May 2013 17:19:47 +0200 by phpDocumentor 1.4.4