Sunday, 15 April 2012

Convert docx to pdf in PHP -


Right before a small background that will help everyone to concentrate I have several Individual files (Indesin) I Can convert to PDF and then do DOCX.

By using the phpword library, I can effectively merge a mail and replace many areas of my document with text and an image.

Then I want to convert it to a PDF, which I can sew several PDF together to print the ground.

I have a word macro that I can only execute through standard command line functions. If I try the same command line in PHP then it is hanging.

I have tried many ways in it, using system, exec, passthru - using either Psexec or hang out all by then timeout, or do not work and leave through.

I have seen other examples using COM object things like this. Either everything is hanging or trying to give me problems with com objects.

Am I trying for impossible, or maybe there is some other way. I have also given e-PDF document converter v2.1 but without success

Currently I am thinking that some permission is being talked about, but how do I actually know about the losses to go around or what to do.

I probably have to use LibreOffice or OpenOffice because both of the command line tools seem to be open but when I open the PDF or doctor file they display a lot of bad.

Any help thanks Richard


The update is just thinking that I will sift the word documents together and then allow the user to download it and then print it You can.

Maybe something like that before?

Exec ("doc2pdf \" $ youPdfFile. "" \ "");


No comments:

Post a Comment