Forum Moderators: coopster

Message Too Old, No Replies

Read/ convert doc to pdf

reading doc files, or converting doc files to pdf.

         

solow

9:01 pm on Jan 24, 2010 (gmt 0)

10+ Year Member



Hey,

I'm having some trouble with one of my projects.
I have to read, and convert, .doc, .docx, .xls, and xlsx files to pdf.
In the end, they should all be together in 1 pdf file, so reading would be best. Though If this is not possible, I'd like for them to be converted to pdf, so i can open them using fpdf.

I got this working for xls and xlsx *conversion* but not for .doc and .docx. Does anyone know, how i can read word and excel files? "word (doc, docx) being most important right now"

Important note, I have to keep the styles. Like, images, text colour, bold, italic etc... The pdf, must be exactly the same as the .doc.

I already tried phplivedocx. Well.. I downloaded Zend, but I have no idea of where the file is, or how to use Zend. So yeah...

I really hope someone is able to help me.

solow.

abuch

2:19 am on Jan 25, 2010 (gmt 0)

10+ Year Member



Hi solow,
If you go to download.com and enter something like 'word to pdf' in the search box (and choosing the download section from the drop-down box next to it), you'll find quite a number of freeware and shareware utilities to try. Most of them have reviews as well.

Good luck,

[edited by: eelixduppy at 4:12 am (utc) on Jan. 25, 2010]
[edit reason] no promos please [/edit]

maximillianos

2:25 am on Jan 25, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Google docs can convert word to PDF.

Brett_Tabke

4:07 am on Jan 25, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



have access to a windows box? You can script a "save to pdf" call to Word 2007 to produce a pdf. It is dead easy with Perl...(not sure about php).

- setup apache on a windows box at your office running Ms office 2007
- call the server from your php script that
- calls a script to query word to produce the pdf
- grab the pdf off disk and send it back to your live online server

Sound complicated? Takes less than 5 seconds to do the above.

There are enough open source prgs out there - certainly no need to buy anything.

solow

6:41 am on Jan 25, 2010 (gmt 0)

10+ Year Member



Thanks for the replies, Though I can't call to any external software for now. I really need a script.

dreamcatcher

8:41 am on Jan 25, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Open Office?

dc

solow

9:58 am on Jan 25, 2010 (gmt 0)

10+ Year Member



Open office is not a script, it's software.

dreamcatcher

9:20 pm on Jan 25, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



True, but you never said script. :p

dc

solow

7:13 am on Jan 26, 2010 (gmt 0)

10+ Year Member



"6:41 am on Jan 25, 2010 (utc 0)
Thanks for the replies, Though I can't call to any external software for now. I really need a script."

So for the other people around here: I wish to do this in php...