Jump to content

Reading and writing PDF & Word Files


gerkintrigg

Recommended Posts

I wondered whether there are any third party scripts that can read an write pdf, doc and docx files fairly easily? I have found loads that require extensions or access to COM modules but if I just have a standard PHP host, can I still do it (reliably)?

 

Thanks in advance

Link to comment
Share on other sites

Firstly you need a windows PC with MS Word.

You need PHP on the same machine. The Windows version of PHP has the COM extensions available in the core.

This tutorial explains how to use the COM object to create a Word document.

http://www.phpbuilder.com/columns/yunus20031124.php3

 

To generate PDFs I would recommend fpdf. It is simple enough to use.

http://www.fpdf.org/

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.