From 7cf986cd9f57f9da13be0b31c20e9a21d27b4d6c Mon Sep 17 00:00:00 2001 From: Anukul Banjade <60177300+anukul999@users.noreply.github.com> Date: Wed, 7 Oct 2020 17:30:14 +0545 Subject: [PATCH] Converting MS Word document to html in php A php file --- converter.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 converter.php diff --git a/converter.php b/converter.php new file mode 100644 index 0000000..d4c2363 --- /dev/null +++ b/converter.php @@ -0,0 +1,21 @@ +Version}\n"; + +//bring it to front +$word->Visible = 1; + +//open an empty document +$word->Documents->Add(); + +//do some weird stuff +$word->Selection->TypeText("This is a test..."); +$word->Documents[1]->SaveAs("Useless test.doc"); + +//closing word +$word->Quit(); + +//free the object +$word = null; +?>