How to call pptconv.exe from PHP source code?

Hi,

We have test it in windows xp and office 2003, all fine.
windows xp and office 2010, all fine.
windows 2003 and office 2007, all fine.
windows 2008(64 bit) and MS Office 2010, failed.
windows 2008(32 bit) and MS Office 2010, failed.

what is the reason, verydoc don't support windows 2008 system?
[0] => Thank you for choosing our product.
[1] => Loading "C:\xampp\htdocs\pptx\tmp\4e7851ab27497_in\test.pptx" file...[20%]
[2] => Shutdown PowerPoint Application...[60%]
[3] => Conversion Finished! Result value = -2

Result value -2 means what?

we have try your suggest method, but the result is "-2", what can we do for that?
=========================
We apologize for any inconvenience this may have caused to you, our PPT to Flash Converter does support windows 2008 system.

When I run the conversion in CMD window, everything is fine,

C:\Windows\system32>"C:\Program Files (x86)\VeryDOC PowerPoint Converter v3.0\pptconv.exe" C:\xampp\htdocs\pptx\test_2\test.pptx C:\xampp\htdocs\pptx\test_2\test_jpg\test_2.jpg -$ XXXXXXXXXXXXXXXX
Thank you for choosing our product.
Loading "C:\xampp\htdocs\pptx\test_2\test.pptx" file...[20%]
Export file(s)...[50%]
Shutdown PowerPoint Application...[60%]
Conversion Finished! Result value = 3

Because PHP application is run inside system user account, the MS Office can’t be run inside system user account properly, so you need run the conversion inside an interactive user account instead of system user account, please refer to following web page to solve this problem,

Convert your PPT file to SWF file under interactive user account

after you installed docPrint Service into your system, you can use following PHP source code to call pptconv.exe to convert PPTX documents to JPEG files quickly,

<?php
$pid=exec('C:\Users\verydoc\Downloads\docPrint_Service\docPrint_Service\docPrint_client.exe wait "C:\Program Files (x86)\VeryDOC PowerPoint Converter v3.0\pptconv.exe" -$ XXXXXXXXXXXXXXX C:\xampp\htdocs\pptx\test_2\test.pptx C:\xampp\htdocs\pptx\test_2\test_jpg\test_2.jpg',$returnvalue);
print_r($returnvalue);
//echo $pid;
?>

VeryPDF

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
How to call pptconv.exe from PHP source code?, 10.0 out of 10 based on 1 rating

Related Posts

This entry was posted in PowerPoint to Flash and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!