Re: Word file to PDF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux