How to convert office files to PDF files from Coldfusion application?

I have just installed the doc2pdf and pdfcamp software. I was able to run it successfully from the command prompt and it was all very easy. I then tried to run it from my Coldfusion application using the tag. The page executes without any errors, but no file is created. Could this be because it is the trial version instead of the full version? When I ran it from the command prompt, I got all of the pop ups telling me it was the trial version, but I didn't get those when trying to run from Coldfusion.

Here is the CF code that I'm using in case anyone is familiar with it.

image

Thanks
Customer
------------------------------------------------------
Thanks for your message, yes, we understand your problem, this problem is caused by permission problem with non-interactive user account, because doc2pdf.exe is using MS Office to convert from office files to PDF files, MS Office is not work properly from an non-interactive user account, so you can't call doc2pdf.exe from Coldfusion application to convert office files to PDF files properly.

In order to solve this problem, we have two solutions for you,

1. Configure Office Applications to Run Under the Interactive User Account, please look at following web pages for more information,

http://www.verydoc.com/others/configure-word-and-excel.htm
http://www.verydoc.com/others/configure%20office%20applications%20to%20run%20under%20the%20interactive%20user%20account.htm
http://www.verydoc.com/doc-to-any-faq.html

2. Call doc2pdf.exe from Coldfusion application using VeryPDFComRunCmd.exe COM Component, you can configure VeryPDFComRunCmd.exe run inside an interactive user account, please look at following web page for more information,

http://www.verydoc.com/blog/verydoc-release-notes-verydoc-releases-an-exe-com-of-verypdfcomruncmd-exe-today-verypdf-exe-com-does-allow-you-to-call-ms-office-and-any-exe-application-from-asp-php-c-net-etc-program-languag.html

btw, we have a "DOC to Any Converter Command Line" product, this product is support all functions which included in doc2pdf.exe + PDFcamp Printer, you may download the trial version of "DOC to Any Converter Command Line" product from this web page to try,

http://www.verydoc.com/doc-to-any.html

because "DOC to Any Converter Command Line" product is not depend on virtual printer to convert office files to PDF files, so it is more stable than doc2pdf.exe + PDFcamp Printer, so we suggest you may download "DOC to Any Converter Command Line" product to try.

VeryPDF
-------------------------------------------------
Thanks for the reply and detailed information. I have a couple of quick follow up questions.

In the first solution, configuring the office applications to run under the different account, does this mean that the machine on which I am doing the conversion has to have those applications installed? My development computer has them, but the server where the production code runs does not.

Does the Doc to Any application require the office applications be installed?

Thanks
Customer
-------------------------------------------------

image
>>In the first solution, configuring the office applications to run under the different account, does this mean that the machine on which I am doing the conversion has to have those applications installed? My development computer has them, but the server where the production code runs does not.

Yes, you need install MS Office to your server first, and then configure MS Office applications run inside an interactive user account.

>>Does the Doc to Any application require the office applications be installed?

Yes or No, "DOC to Any Converter Command Line" has several options,
1. Convert office files to PDF files using MS Office,
2. Convert office files to PDF files using OpenOffice,
3. Convert office files to PDF files without use any 3rd Office applications,

Please look at following web pages for more information,

http://www.verydoc.com/blog/verydoc-doc-to-any-converter-command-line-v3-5-release-notes-convert-word-to-pdf-without-office-and-openoffice.html

http://www.verydoc.com/blog/useoffice-and-nooffice-options-in-doc2any-exe-application-how-can-doc2any-exe-to-determine-ms-office-openoffice-and-without-office-automatically.html

http://www.verydoc.com/blog/verydoc-has-released-doc-to-any-converter-command-line-v3-0-today.html

http://www.verydoc.com/blog/how-to-convert-ms-office-file-to-image-without-ms-office-installed.html

http://www.verydoc.com/blog/useoffice-and-nooffice-options-in-doc2any-exe-application-how-can-doc2any-exe-to-determine-ms-office-openoffice-and-without-office-automatically.html

VeryPDF

School See Also:
http://www.verypdf.com/wordpress/201311/cant-get-doc2pdfcommandline-to-work-on-64bit-coldfusion-39225.html

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in DOC to Any Converter, DocConverter COM, PDFcamp Printer and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!