note 85205 added to class.com
| From: | jkruse | Date: | Wed, 20 Aug 2008 08:22:38 +0000 |
| Subject: | note 85205 added to class.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143668@lists.php.net to get a copy of this message | ||
This is my first php.net comment so go easy on me :)
I was having trouble using COM to convert from ppt/pptx to an image for every slide (this works for
outputting pdf,html,pptx->ppt, etc)
$app = new COM("PowerPoint.application") or die("Unable to instantiate
PowerPoint");
$app->Visible = true;
$pres = $app->Presentations->Open("E:/tmp/test.pptx") or die ("Could not open
presentation");
$app->Presentations[1]->SaveAs("E:/tmp/outdir",18);
$app->Presentations[1]->Close();
$app->Quit();
$app = null;
This code converts pptx to a png of every frame. Thats what 18 stands for (Its a class constant, you
can see all the other formats here: http://msdn.microsoft.com/en-us/library/bb265906.aspx)
Hope this helps someone. Feel free to email me at the address above.
----
Server IP: 209.41.74.194
Probable Submitter: 64.126.69.233
----
Manual Page -- http://www.php.net/manual/en/class.com.php
Edit -- https://master.php.net/note/edit/85205
Del: integrated -- https://master.php.net/note/delete/85205/integrated
Del: useless -- https://master.php.net/note/delete/85205/useless
Del: bad code -- https://master.php.net/note/delete/85205/bad+code
Del: spam -- https://master.php.net/note/delete/85205/spam
Del: non-english -- https://master.php.net/note/delete/85205/non-english
Del: in docs -- https://master.php.net/note/delete/85205/in+docs
Del: other reasons-- https://master.php.net/note/delete/85205
Reject -- https://master.php.net/note/reject/85205
Search -- https://master.php.net/manage/user-notes.php