コード例 #1
0
ファイル: output-pdf-usage.php プロジェクト: extend/wee
<?php

// Create the PDF Output
$oPDFOutput = new weePDFOutput();
// Set the destination filename
$oPDFOutput->setFilename('my filename');
// No need for the extension
// Set options that will be passed to pdflatex on the command-line
$oPDFOutput->setOptions('-interaction nonstopmode');
// Finally, select the PDF Output
weeOutput::select($oPDFOutput);
コード例 #2
0
ファイル: output-select-tmp.php プロジェクト: extend/wee
<?php

// Switch output driver
$oOldOutput = weeOutput::select(new weeTextOutput());
// Do your thing
doSomething();
// Switch back to the previous driver
weeOutput::select($oOldOutput);
コード例 #3
0
ファイル: output-select.php プロジェクト: extend/wee
<?php

// Create a default output if none has been created before
$oOutput = new weeXHTMLOutput();
// Change output used
weeOutput::select(new weeTextOutput());