Yii Framework Forum: [Extension] Convert Docx, Xlsx To Html And Pdf To Text - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Extension] Convert Docx, Xlsx To Html And Pdf To Text

#1 User is offline   Anderson Loyola 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 13-January 11

Posted 04 April 2013 - 10:23 AM

Extension convert DOCX and XLSX to HTML and PDF to Text
Based to PostOffice WordPress

Installation

Download and install YiiOffice extension.
Download and Unzip YiiOffice, then copy yiioffice directory to protected/vendors.
Set the folder permission extract
Add YiiOffice to imports:
...
'import'=>array(
...
'application.vendors.yiioffice.YiiOffice',
...
),

Usage

$debug = true;
$yiiOffice = new YiiOffice($tempFile,$debug);
echo $yiiOffice->getHtml();

Attached File(s)


0

#2 User is offline   Martin Pascualon 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 07-July 12

Posted 31 March 2015 - 03:45 PM

View PostAnderson Loyola, on 04 April 2013 - 10:23 AM, said:

Extension convert DOCX and XLSX to HTML and PDF to Text
Based to PostOffice WordPress

Installation

Download and install YiiOffice extension.
Download and Unzip YiiOffice, then copy yiioffice directory to protected/vendors.
Set the folder permission extract
Add YiiOffice to imports:
...
'import'=>array(
...
'application.vendors.yiioffice.YiiOffice',
...
),

Usage

$debug = true;
$yiiOffice = new YiiOffice($tempFile,$debug);
echo $yiiOffice->getHtml();



There is an error inside the function UnzipAll in the line

"foreach ($lista as $fileName => $trash) {"

Please post how should be placed in controller and view
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users