I’m using antiword to read doc files in php:
<?php
$filename = 'sample.doc';
$content = shell_exec('C:\\wamp\\www\\tester\\read_documents\\antiword\\antiword '.$filename);
echo $content;
?>
Is it possible to format the output?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
manual page of antiword says:
So, you can choose various output formats; by default, antiword strips out all formatting. I’d guess you want the
-foption, and possibly replace that simple formatting into HTML tags.