<?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);
<?php // Switch output driver $oOldOutput = weeOutput::select(new weeTextOutput()); // Do your thing doSomething(); // Switch back to the previous driver weeOutput::select($oOldOutput);
<?php // Create a default output if none has been created before $oOutput = new weeXHTMLOutput(); // Change output used weeOutput::select(new weeTextOutput());