By default, this writer pre-calculates all formulas in the spreadsheet. This can be slow on large spreadsheets, and maybe even unwanted. You can however disable formula pre-calculation:
$objWriter = new PHPExcel_Writer_PDF($objPHPExcel); $objWriter->setPreCalculateFormulas(false);
$objWriter->save("05featuredemo.pdf");
Decimal and thousands separators
See section PHPExcel_Writer_CSV how to control the appearance of these.
Generating Excel files from templates (read, modify, write)
Readers and writers are the tools that allow you to generate Excel files from templates. This requires less coding effort than generating the Excel file from scratch, especially if your template has many styles, page setup properties, headers etc.
Here is an example how to open a template file, fill in a couple of fields and save it again:
Notice that it is ok to load an xlsx file and generate an xls file.
Credits
Please refer to the internet page http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Credits&referringTitle=Home for up-to-date credits.
Appendix A: Valid array keys for style applyFromArray()
The following table lists the valid array keys for PHPExcel_Style applyFromArray() classes. If the “Maps to property” column maps a key to a setter, the value provided for that key will be applied directly. If the “Maps to property” column maps a key to a getter, the value provided for that key will be applied as another style array.
PHPExcel_Style
Array key:
Maps to property:
fill
font
borders
alignment
numberformat
protection