Location: PHPKode > scripts > PHP DocWriter > php-docwriter/examples/ex1.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 ('Hello World!');

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