Source code for file /pattemplate/patTemplate/OutputFilter/PdfLatex.php
Documentation is available at PdfLatex.php
* patTemplate output filter that creates PDF files from latex
* $Id: PdfLatex.php 47 2005-09-15 02:55:27Z rhuk $
// Check to ensure this file is within the rest of the framework
* patTemplate output filter that creates PDF files from latex
* $Id: PdfLatex.php 47 2005-09-15 02:55:27Z rhuk $
* This has to be set in the final
* @return string compressed data
$cacheFolder =
$this->getParam('cacheFolder');
$texFile =
tempnam($cacheFolder, 'pt_tex_');
$fp =
fopen($texFile, 'w');
$command =
'pdflatex '.
$texFile;
$pdf =
$texFile .
'.pdf';