DOC to Any does convert OpenOffice document .odt files to PDF files by OpenOffice Service

I'm getting this error:

I tried to use doc2any command line tool with IIS 7.5 and got the below error

Error: Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

c:\windows\system32\inetsrv>cd "C:\Program Files (x86)\PDFcamp Printer (x64) v2.5"
C:\Program Files (x86)\PDFcamp Printer (x64) v2.5>pdfcp.exe
C:\Program Files (x86)\PDFcamp Printer (x64) v2.5>cd "C:\Program Files (x86)\VeryDOC Office to PDF Converter v2.0"

C:\Program Files (x86)\VeryDOC Office to PDF Converter v2.0>doc2any.exe

"__declspec(dllexport) int WINAPI DocToAnyRunCmd(const char *lpszCmdLine);"

C:\Program Files (x86)\VeryDOC Office to PDF Converter v2.0>doc2any.exe "C:\inetpub\wwwroot\dms\Documents\admin/685575508notes module.docx" "C:\inetpub\wwwroot\dms\Documents\admin/685575508notes module.pdf"

Can't install "VeryPDF Postscript Writer" printer properly, please use Administrator right to run this application again.
Can't install "VeryPDF Postscript Writer" printer properly, please use Administrator right to run this application again.
Conversion time = 14649ms

C:\inetpub\wwwroot\dms\Documents\admin/685575508notes module.docx ==> C:\inetpub\wwwroot\dms\Documents\admin/685575508notes module.pdf, result=ERROR
TickCount = 14649ms(14.65s), Result = 0

C:\Program Files (x86)\VeryDOC Office to PDF Converter v2.0>cd "C:\Program Files (x86)"
C:\Program Files (x86)>exit

I am using Process Class from asp.net 4.0 on IIS 7.5 on Windows 2008R2,Ii have also installed PDFCamp on my server but does not help much.
==============================
Just for checking, please run a CMD window by administrator privilege, and run following command line in this CMD window to try again,

doc2any.exe -debug -useprinter -useoffice test.doc out.pdf

Can you work fine with above command line by manual?

VeryPDF
==============================
You can also run the ASP.NET or C# application from administrator user account instead of default system user account, please refer to following web pages for more information,

http://www.verypdf.com/wordpress/201109/doc2any-sdk-dll-does-work-on-localhost-but-not-work-on-internet-2333.html

https://www.verydoc.com/blog/doc2any-exe-very-slow-when-executed-from-php.html

https://www.verydoc.com/doc-to-any-shell.html

https://www.verydoc.com/blog/how-to-call-doc2any-exe-from-asp-code.html

https://www.verydoc.com/blog/cannot-test-doc2any-on-net.html

https://www.verydoc.com/blog/convert-word-doc-file-to-pdf-file-with-openoffice.html

If you still can't get it work, please feel free contact me via skype, my skype is xue.heng, I will assist you online asap.

VeryPDF
==============================
Thank your for you reply - your solutions worked. Now, I have another issue:

I'm working with: doc2any.exe as I have the command line
server license. I'm working on converting .odt files (open office docs) to .swf and .pdf.
I have installed post script writer, but not sure
how it will work with my license, please let me know the details. I
have seen your links but still need help, I'm am unable to do it.
==============================

Have you installed OpenOffice application? if not, please install OpenOffice application to try again.

Please also check if OpenOffice service is running, if OpenOffice service is NOT running, you can run following command line to launch the OpenOffice service first,

"C:\Program Files\OpenOffice.org 3\program\soffice.exe" -headless -nologo -norestore -nofirststartwizard -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager

after OpenOffice service is running, you can run following command line to convert your .odt file to pdf file properly,

doc2any.exe test.odt out.pdf
==============================

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

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!