Write pdf files with phpexcel bundle? - symfony

How to print a pdf file with phpExcel Bundle.. the documentation show how to write a xls file with the code:
$response->headers->set('Content-Type', 'text/vnd.ms-excel; charset=utf-8');
$response->headers->set('Content-Disposition', 'attachment;filename=stdream2.xls');
This is working, but i don't have idea how to write a pdf file?
Any suggestion?

The new version of https://github.com/liuggio/ExcelBundle
now has pdf and xlsx support.

Related

How to add png file to a worksheet in excel?

My original file is a kableExtra file and I want to insert it as image to excel workbook.
To do so I saved it to my wd as png. file. I wanted to create new workbook and add png image to worksheet.
I tried to do it with addImage function but I cannot install any package where the function is, although I have the newest R version installed.
Is there any way to save kableExtra file straight into excelworkbook as image? If not how can I do it with png. file without using function addImage?
Thank you for help

Importing a pdf image in R markdown

I am trying to import a pdf file into R Markdown.
The pdf file name is "question7.pdf".
I am trying to import the image using knitr::include_graphics() but I have no idea on how to use the code properly.
Could someone help me?
Tks !
Just running
knitr::include_graphics("question7.pdf")
inside an R code chunk in your RMarkdown file should work. Assuming that question7.pdf is in the same folder as your Rmd file.

How to generate excel2010 with PHPExcel

I am generating excel2017 with phpexcel. i am facing problem with COUNTIFS() function. Is there any way to generate excel2010 with phpexcel?
$writer = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
There is no such format as Excel2010, that's simply a version of MS Excel. If you want to create an Excel BIFF-format (.xls) file, then you use the Excel5 Writer; if you want to create an OfficeOpenXML (.xlsx) file, then you use the Excel2007 Writer

PHPExcel incorrectly defines the MSO word files format.

I'm use PHPExcel v. 1.7.8 and I trying run this code:
$PHPReader = PHPExcel_IOFactory::createReaderForFile($filename);
$class = get_class($PHPReader);
When I run this code for MSO .doc file, I get $classname = 'PHPExcel_Reader_Excel5'.
It's wrong! How do I correct check the file format?
Thank in advance.
Either modify the read() method of the classes/PHPExcel/Shared/OLERead.php file to include additional checks above and beyond the check that this is simply an OLE2 file - e.g. parsing the Workbook Global substream (0x0005) checking for the existence of an XLS_Type_SHEET (0x0085) record; or don't pass a .doc file to the reader.

problem in creating .xls file in Hebrew/arabic language with format in php

i am facing a problem with creating a .xls file in Hebrew/arabic language in php.
When i create a file then all of the field created that in english.But field in Hebrew language field has created in unreadable format.
if anyone can help me?
i m waiting...........
You can use phpexcel library for this purpose. Its works great. You can download the library from here:
http://code.google.com/p/php-excel/

Resources