answersLogoWhite

0

PHP doesn't containt module to read DOC files, and PHP Extension Community Library also so I must wrote it himself as .dll file in for example C Language, but it's difficult

UPDATE: There is a much, much easier way...

...using a project called phpLiveDocx. It is a SOAP based service, completely free of charge and does EXACTLY what you want. For sample code to convert a DOC to PDF using phpLiveDocx, take a look at this recent blog post:

http://www.phplivedocx.org/2009/02/06/convert-doc-to-pdf-in-php/

Have fun coding :-)

Leo

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How do you convert a pdf file in PHP?

There are a few different PHP pdf generators out there. PDFLIB and FPDF. You need to purchase a license for PDFLIB but FDP is free.


How can you export data from MySQL to PDF using PHP?

If you know FPDF or simlar library which helps to make a PDF file, using PHP,you will be able to write to a PDF file out of data read from mysql tables.


How do you convert a PMD file to a PDF file using PHP?

To convert a PMD file to a PDF file using PHP, you can utilize a library like Ghostscript or a dedicated conversion tool like LibreOffice in headless mode. First, ensure the necessary software is installed on your server. You can then execute a shell command in PHP using exec() to call the conversion tool, for example, using Ghostscript: exec("gs -sDEVICE=pdfwrite -o output.pdf input.pmd"); Make sure to handle any errors and permissions appropriately.


How can i get pdf file of php?

To generate a PDF file in PHP, you can use libraries like TCPDF, FPDF, or dompdf. First, install the library using Composer or download it manually. Then, include the library in your PHP script, create a new PDF document, add content, and finally, output the PDF to the browser or save it to a file. Be sure to refer to the library's documentation for specific usage instructions.


How do you read pdf file in php?

You have to embed it or include it inside a special framework. You can find many ways by searching for "PDF in PHP" in a search engine.


How do you read a PDF file line by line in PHP or is there a way to create a text file from PDF file using PHP?

You can use libraries like TCPDF or FPDF in PHP to extract text from a PDF file, but reading a PDF line by line directly is not straightforward as PDF files do not have a specific line structure like text files. To create a text file from a PDF, you can use libraries like MPDF or PDFlib in PHP to extract text content and write it to a text file.


Is conversion of word to pdf in server in php possible?

No. Its Not Possible


How do you store pdf file to database using PHP?

Files cannot be directly stored in a MySQL database. However, a path to the file or the contents of the file can.


How can you convert videos to other formats in server in your php website?

There are different ways to convert videos to other formats in server in a PHP website. You will have to convert all the language, objects and writing.


How do you convert PHP file into wma?

You don't. PHP is a page written in PHP programming, wma is a music file.Sorry, but you phail completely. kthx


Does android supports PHP?

It supports websites made on php but not coding in php. There are workarounds for coding in PHP using Android.


How do you convert a 24 bit wav to a 16 bit wav using PHP?

To convert a 24-bit WAV file to a 16-bit WAV file using PHP, you can use the ffmpeg command-line tool. First, ensure that ffmpeg is installed on your server. Then, you can execute a shell command from PHP using the exec() function, like this: exec("ffmpeg -i input.wav -sample_fmt s16 output.wav");. This command reads the 24-bit WAV file and outputs a new 16-bit WAV file.