hy guys,
i'm new to php programing, but i'm getting along with it.
i´m working on a project, that is very helpfull for me.
i have made all the site in php and html, but one of the links is a page that is created each day with microsoft word (damn!). I´m running RH8, apache and php4 in my server and my biggest problem is:
how to convert the doc file to pdf so that i can publish it automatically (i've already made the script to upload it and rename it automaticaly), but that no one can change the contents of the document. (i think pdf is the best way). so, how can i convert the word doc file into a pdf, without changing anything from the doc (including tables)? Please help me.
Thanks
big problem
Moderator: General Moderators
there probably is a better/easier way to accomplish that but this is how I do it:
And also programs to convert the docs without having MS-word installed (e.g. http://www.winfield.demon.nl/), but imho the printer/ghostscript-combo produces the best results (things might have changed since my last search)
- install a postscript printer that uses FILE: as port (usually I use Apple Color LaserWriter 12/600 from the w2k-install cd)
- print the document with this printer and change the result file's extension to .ps
- use ghostscript/ghostview's pdfwriter to create the pdf
And also programs to convert the docs without having MS-word installed (e.g. http://www.winfield.demon.nl/), but imho the printer/ghostscript-combo produces the best results (things might have changed since my last search)