Location: PHPKode > scripts > PHP DocWriter > php-docwriter/examples/ex4.php
<?php
require_once('../lib/include.php');
import('phpdocwriter.pdw_document');

$sxw = new pdw_document;
$sxw->SetLanguage('es','ES');
$sxw->SetStdFont ("Times New Roman",10);

$sxw->Write('Lets insert an image...');
$sxw->Ln(2);
$sxw->Image(array('path'=>'logo.png','w'=>4.12,'h'=>1.92));

if (isset ($_REQUEST["format"])) $sxw->SetExportFilter ($_REQUEST["format"]);
if (isset ($_REQUEST["zip"]) && ($_REQUEST["zip"] == 1)) $sxw->CompressOutput();
$sxw->Output();
?>
Return current item: PHP DocWriter