Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-14-2013, 02:16 PM   PM User | #1
happybanana
New Coder

 
Join Date: Nov 2012
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
happybanana is an unknown quantity at this point
Best options for .doc(x) libraries?

Hi all,

I'm using native PHP and I'm looking for a way to generate .doc files on the fly. I want to be able to do image insertion, TOC, header-footers, tables etc.

I can find half decent .rtf generator libraries but they don't do TOC of course. Anything for .doc(x) is either in beta and a bit ropey or seems to cost $$$. There seems to be about 3 main libraries/packages in this space. Can anyone recommend anything I might have overlooked?

I believe some PHP frameworks might have solutions for this but I can't use them right now. What are peoples suggestions? Should I look to creating a HTML->DOC type setup or something else?

I guess I could go straight to PDF but I kinda need the document to be user-editable too.

I'm stumped! Any suggestions?
happybanana is offline   Reply With Quote
Old 03-14-2013, 07:15 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,452
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Anything you find is going to cost quite a bit because that's a proprietary format owned by Microsoft and they want their cut for any program that uses it.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 03-15-2013, 01:34 AM   PM User | #3
happybanana
New Coder

 
Join Date: Nov 2012
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
happybanana is an unknown quantity at this point
That's not really true.

Their Word 2007 XML standard is well documented for example. I'm surprised there isn't a comprehensive PHP library for it yet.
happybanana is offline   Reply With Quote
Old 03-15-2013, 04:59 PM   PM User | #4
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
I haven't tried this one yet, but the PHPExcel library from the same people works well:
https://github.com/PHPOffice/PHPWord
Inigoesdr is offline   Reply With Quote
Old 03-16-2013, 03:34 AM   PM User | #5
happybanana
New Coder

 
Join Date: Nov 2012
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
happybanana is an unknown quantity at this point
Thanks for that. That's the one I've decided to work with for the moment.

My only concern with that one is that it's still in beta and no development on it has occurred since 2011. I've already noticed a few quirks with it but I'll push on ahead with it until I have to change tack!
happybanana is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:41 AM.


Advertisement
Log in to turn off these ads.