SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard Zaggs's Avatar
    Join Date
    Feb 2005
    Posts
    1,048
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP convert word files into plain text

    Hi Guys,

    I found this piece of PHP software which converts word document files (.doc and .rtf) files into plainn text files, but I wanted to create my own class instead of using this software - any ideas which functions I need to use?

    Link: http://www.phpwordlib.motion-bg.com/

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2007
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll require http://uk3.php.net/com

    You'll also need Microsoft Word installed on the same machine as PHP.

    See the comments on that page for initiating a Word object.

  3. #3
    SitePoint Wizard Zaggs's Avatar
    Join Date
    Feb 2005
    Posts
    1,048
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There must be an alternative to COM, because the software I listed above does not use that! Any ideas?

  4. #4
    SitePoint Zealot
    Join Date
    Jun 2007
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're going to need a library to parse the Word documents. Either the official Word COM runtime by Microsoft or a third party lib such as the one you link to.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •