#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    UK
    Posts
    7
    Rep Power
    0

    Converting DOC files to PDF files using PHP


    I've managed to create PDFs on the fly using the info on the R&OS website http://www.ros.co.nz/pdf/ and am gradullay getting better with the design (although slowly!!)

    Now I'm looking for a way to convert Word documents I have stored on a web server to PDF files (mainly so they can't be edited after download)

    I know of this such as JawsPDF and so forth to do it on my PC but was wondering if it was possible in PHP at all?

    Cheers to all responses in advance and hope I can return the favour one day!
  2. #2
  3. Java PHP Oracle Developer
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Location
    C-Bus OH-IO
    Posts
    204
    Rep Power
    14
    Not the best way, but maybe good enough for you.

    You should be able to do this using OpenOffice libraries. You could write a macro in Star Office and then a batch file. This process is explained here: http://www.oooforum.org/forum/viewtopic.php?t=3772

    Maybe there is a way to do the conversion using OpenOffice without having to do all of this. This way sure sounds painful.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    64
    Rep Power
    14
    Here's a php script that is free and will convert HTML to PDF - I would imagine making it do documents is possible
    http://rustyparts.com/pdf.phphttp://rustyparts.com/pdf.php
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    UK
    Posts
    7
    Rep Power
    0

    Cheers


    Thanks lads! Will see what I can come up with but I may be back!

    Nice to see a forum where people are only to happy to help. Being new to PHP it can be a bit daunting at times!

    Once again, thanks!

IMN logo majestic logo threadwatch logo seochat tools logo