You are here: Re: [PHP] Word file to PDF « PHP « IT news, forums, messages
Re: [PHP] Word file to PDF

Posted by Andre Dubuc on 10/04/44 11:09

On Friday 25 February 2005 03:08 pm, Rory Browne wrote:
> > Run PHP on a windows platform that has MSWord and the PDF printing
> > libraries installed. Use PHP's COM support to load an MSWord object and
> > see if you can get it to load the word document and print it out as a PDF
> > file. Once it is printed to the file, you can use PHP to read the file
> > and do whatever is needed from here.
>
> That's pretty much one of my suggestions, although I considered it
> only a suitable/practical solution if s/he was running a windows box
> anyway. I wouldn't take on the pain, and cost of switching to a
> windows box, solely for the sake of converting word docs.
>
> > I've never tried it with PHP, but with experimentation and research you
> > should be able to make it work. I know that where I work we convert MS
> > Word, Excel, and other kinds of documents to PDFs automatically using
> > this method, though I think the appliaction than controls everything is
> > written in C.
>
> I'd like to see the code that you use for that. The COM Methods would
> be independent of the language used. Would you be allowed to share it
> with us?
>
> > Parsing and MSWord file manually with images et al, then reliably
> > converting it to a PDF document... Yikes, if anyone can do this, you're
> > my god.
>
> Check out my initial response to this post. wvWare can reliably
> convert a word doc with images. It falls down a bit, when it comes to
> embedded charts, or something like that or so I've heard.
>
> It seems like the staroffice/openoffice, and wvware devs, (and anyone
> else who has created a word doc importer) have become your god(s).
>
> > Best of luck, let us know what solution you come up with.
> >
> > -KBear
> >
> > Original Message:
> >
> > Hi there,
> >
> > How can I convert a Word file (*.doc) to PDF file? Are there any
> > libraries available?
> >
> > Can you give me some hint how can I do that?
> >
> > Thanks.
> >
> > Kevin.
> >
Hi,

Coming late into this thread but you could try
http://doc2pdf.sourceforge.net/
and see if it might fit your needs.

Hth,
Andre

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация