Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Microsoft Word files with PHP?

  1. #1
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Microsoft Word files with PHP?

    Hello all,

    I was just building a WYSIWYG editor when I needed to save the output as a Microsoft Word file but after numerous searches I still cannot find any algorithms for encrypting the data so that Microsoft Word can read it. I was wondering if anyone had any solutions for it? Or do I have to buy the algorithm? Any help would be greatly appreciated.

    Thanks!!

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It's a closely-guarded proprietary format. The guys at OpenOffice have managed to reverse engineer it pretty well, you could look at their source for some ideas. Either way, it'll be a hard and thankless task, and you'd have a much easier time outputting to the Open Document Format, which is simple XML.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I think I'll try to use the open document format, that'd be much easier. But I will also try to reverse engineer the format. Maybe that'll teach me some serious decryption.

    Thanks for the information and your help.

    EDIT: Where can I get something like a manual on using the ODF? Thanks again.
    Last edited by shachi; 04-05-2007 at 04:29 PM.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The specification is maintained by OASIS, here. Basic knowledge of XML is required.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Do you specialize in cryptography Twey?

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Cryptography? No, I'm terrible at maths and everything to do with it... if I really want to send messages to someone in private, I construct a new language and use that instead

    This doesn't have much to do with cryptography... the MS Office formats are just obscure and poorly documented, not encrypted.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by Twey View Post
    the MS Office formats are just obscure and poorly documented
    I wouldn't doubt if Bill Gates requires that before everything is shipped / released, he mandates that all documentation / coding comments be removed.

    While it does help the proprietory information, I cannot even come to fathom what it must be like to actually work for microsoft and have to confront that mess.

  8. #8
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by Twey View Post
    MS software standards are just obscure and poorly documented
    fixed?

    But their might be a manual that a developer wrote, some where in an office, under a desk, covered in cobwebs and in a rough draft... Abysmal creation, Microsoft is...
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I suspect it's probably fairly well documented (or maybe not, if what we've seen of their Open XML format is any indication; evidence does seem to exist that at least some of it is thoroughly documented internally, though). Unfortunately, this documentation isn't available to the general public, since it would promote interoperability, the bane of Microsoft.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So, I guess I am on my own.

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
  •