Please...i cannot export to pdf

Topics: Developer Forum, Project Management Forum, User Forum
Feb 6, 2013 at 5:32 PM
Edited Feb 6, 2013 at 5:33 PM
my error :

NOTICE: Please set the $rendererName and $rendererLibraryPath values<br />at the top of this script as appropriate for your directory structure

my location

$rendererName = PHPExcel_Settings::PDF_RENDERER_MPDF;
$rendererLibrary = 'mpdf';
$rendererLibraryPath = $_SERVER['DOCUMENT_ROOT'].'/simpada-offline/server/lib/PHPExcel/Writer/PDF/' . $rendererLibrary;

my name file mpdf.php on $_SERVER['DOCUMENT_ROOT'].'/simpada-offline/server/lib/PHPExcel/Writer/PDF/
$rendererLibrary = name of file??
$rendererLibraryPath = location file mpdf??

how can i fixed??
Coordinator
Feb 7, 2013 at 7:36 AM
The library path should be the filepath to where you have installed the PDF library that you have set up. The files in PHPExcel/Writer/PDF are the wrappers that PHPExcel uses for your choice of 3rd party PDF rendering library (tcPDF, mPDF or DomPDF). You know where you've installed those libraries, PHPExcel doesn't until you tell it.
Feb 7, 2013 at 10:21 AM
Edited Feb 7, 2013 at 10:41 AM
MarkBaker wrote:
The library path should be the filepath to where you have installed the PDF library that you have set up. The files in PHPExcel/Writer/PDF are the wrappers that PHPExcel uses for your choice of 3rd party PDF rendering library (tcPDF, mPDF or DomPDF). You know where you've installed those libraries, PHPExcel doesn't until you tell it.
files in PHPExcel / Writer / PDF is not to convert pdf?
I use DOMPDF as output pdf.
I had to download DOMPDF to create pdf?
please, can you explain step by step how to use the pdf!

this part of my code
/** Include PHPExcel */
require_once ($_SERVER['DOCUMENT_ROOT'].'/simpada-offline/server/lib/PHPExcel.php');

//  Change these values to select the Rendering library that you wish to use
//      and its directory location on your server
//$rendererName = PHPExcel_Settings::PDF_RENDERER_TCPDF;
//$rendererName = PHPExcel_Settings::PDF_RENDERER_MPDF;
$rendererName = PHPExcel_Settings::PDF_RENDERER_DOMPDF;
//$rendererLibrary = 'tcPDF5.9';
//$rendererLibrary = 'mPDF5.4';
$rendererLibrary = 'dompdf';
//i use $rendererLibraryPath where location folder dompdf 
$rendererLibraryPath = $_SERVER['DOCUMENT_ROOT'].'/simpada-offline/server/lib/dompdf/' . $rendererLibrary;
Feb 8, 2013 at 2:58 AM
[Solved]

thanks MarkBaker