DOC to Any Converter

How to convert Office documents (Word, Excel, Outlook messages and PowerPoint, both old and new versions) to PDF/TIFF without MS Office components on our servers?

Hi,

We need a component that will help us convert Office documents (Word, Excel, Outlook messages and PowerPoint, both old and new versions) to PDF/TIFF.

The primary restriction we have is that we cannot install MS Office components on our servers.

We are interested in using your component for our tasks, and have the following questions:

1. Does it convert all the file types mentioned above?

2. Does it require MS Office installation on the server?

3. Does it support multi-threaded access?

4. Do you have any load testing results?

Please let me know if you need any information from me.

Best Regards,
Customer
----------------------------------------------------
Thanks for your message, I assume you are using the DOC to Any Converter Command Line software on your server, the DOC to Any Converter Command Line can be downloaded from following web page,

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

I have answered your questions at below,

>>1. Does it convert all the file types mentioned above?

Yes.

>>2. Does it require MS Office installation on the server?

Yes and No.

DOC to Any Converter Command Line can convert office files to PDF files with/without MS Office, OpenOffice and NoOffice options.

Please look at following web pages for more information,

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

https://www.verydoc.com/blog/doc2any-command-line-and-sdk-supported-document-formats.html

https://www.verydoc.com/blog/category/doc-to-any-converter

>>3. Does it support multi-threaded access?

Yes, DOC to Any Converter Command Line is support multi-threaded access.

>>4. Do you have any load testing results?

Do you meaning the "load balancing" testing results?

VeryPDF

DOC to Any Converter

How to call doc2any.exe from PHP source code to convert a xlsx file to pdf?

Hello, I'm trying doc2any.exe to convert a xlsx file to pdf, so far is working fine on command line but when I use shell_exec on php i get the following response:

[Message] You have 299 time to evaluate 'VeryDOC DOC to Any Converter Command Line' product, you may purchase a full version from 'https://www.verydoc.com/doc-to-any.html' web page.
[Message] Conversion time = 0ms [Message] "C:\inetpub\wwwroot\generados\SMR47001000000009794437.xlsx" ==> "C:\inetpub\wwwroot\out.pdf", result=ERROR
[Warning] If the conversion is fail, it may caused by permission problem, please run a CMD window by administrator privilege, and run same command line to try again. doc2any.exe is only require administrator privilege at first time when you run it.

Customer
-----------------------------------------
Because MS Office can't be run from Local System user account directly, so you need arrange MS Office or doc2any.exe run inside an interactive user account, we have several solutions for you to solve this problem,

Solution 1: Use VeryPDFComRunCmd COM to call doc2any.exe from PHP code, please look at following web pages for more information,

https://www.verydoc.com/blog/how-to-call-doc2any-exe-from-php-source-code.html
https://www.verydoc.com/blog/how-to-call-doc2any-from-php.html
http://www.verypdf.com/wordpress/201502/how-to-convert-any-file-to-pdf-using-php-script-41447.html
https://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

Solution 2: Set MS Office DCOM run inside an interactive user account instead of default Local System user account,

https://www.verydoc.com/blog/microsoft-excel-application-entry-missing-in-dcomcnfg.html
https://www.verydoc.com/others/configure-word-and-excel.htm
https://www.verydoc.com/others/configure%20office%20applications%20to%20run%20under%20the%20interactive%20user%20account.htm
https://www.verydoc.com/doc-to-any-faq.html
https://www.verydoc.com/blog/how-to-make-iis7-play-nice-with-office-interop.html
https://www.verydoc.com/blog/aspnet-account-dcom-permisson-for-ms-word.html

Solution 3: Run conversion via "docPrint_Service.exe" application, please look at Example #7 from this web page,

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

Example #7 (Run conversion via "docPrint_Service.exe" application),

docPrint Service can be used to run a Command Line from current active user account or a special user account, this tool is useful to overcome permission restrictions in SYSTEM and Non-Interactive user accounts.

Please by following steps to use docPrint Service,

1. Download docPrint_Service.zip and unzip it to a folder,

2. Run docPrint_Service.exe application, you will see an icon appear in tray area,

3. You can run following command lines to test it first, "docPrint_client.exe" will deliver the Command Line to docPrint_Service.exe application, docPrint_Service.exe application will execute the Command Line from active user account automatically,

docPrint_client.exe nowait "C:\VeryDOC\doc2any.exe" C:\test.doc C:\out.pdf
docPrint_client.exe wait "C:\VeryDOC\doc2any.exe" C:\test.doc C:\out.pdf

4. You can call "docPrint_client.exe" from your code, please refer to a simple C# code at below,

public partial class rundoc2any: System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Process proc = new Process();
proc.StartInfo.FileName = "C:\\VeryDOC\\docPrint_client.exe";
string strArguments = "wait C:\\VeryDOC\\doc2any.exe C:\\test.doc C:\\test.pdf";
Console.WriteLine(strArguments);
proc.StartInfo.Arguments = @strArguments;
proc.Start();
proc.WaitForExit();
Response.Write("File has been successfully converted");
}
}

5. Close Remote Desktop and leave this user logged in.

*Please Notice: After you reboot the server, you need login your server via Remote Desktop with this user account ("doc2pdf_service.exe" was installed inside this user account), and close Remote Desktop, leave this user logged in, when you call docPrint_client.exe application, the conversion will be executed from this user account automatically.

VeryPDF

DOC to Any Converter

How to use doc2any SDK to convert HTML file to PDF file and break the pages?

1) If the HTML required > then one page it would page break it for us in the PDF.
2) Are we able to do page 1 of X?
3) Are we able to use the header on the first page only and then change it to just a small text header? Sample attached.
4) Do you have any page break commands?

Please provide samples in VB.

First page has logo header and footer including page number
Second page has different header and same footer with page number.

Please provide samples in VB.

Thanks.
Customer
------------------------------------------

DOC to Any Converter SDK/COM Version,
https://www.verydoc.com/doc-to-any.html

>>1) If the HTML required > then one page it would page break it for us in the PDF.
>>2) Are we able to do page 1 of X?
>>3) Are we able to use the header on the first page only and then change it to just a small text header? Sample attached.
>>4) Do you have any page break commands?

Thanks for your message, doc2any SDK can't format the contents during conversion, we suggest you may format the contents in HTML file first, for example, you can include the text header or image header on the first page, and then change it to text header on the following pages, you can use following DIV CSS style to break the pages in PDF file properly,

<div style="page-break-before:always;"></div>

after you create the HTML file, you can use following ASP code to convert this HTML file to PDF file with page breaks properly,

--------------------------
strInFile = "D:\downloads\verypdf.html"
strOutFile = "D:\downloads\out.pdf"
strCmd = "-webkit -$ XXXX-XXXX-XXXX-XXXX -wtype 1 -wtext ""Watermark %PageNumber% of %PageCount%"" " & """" & strInFile & """ """ & strOutFile & """"

Set VeryPDFCom = Server.CreateObject("VeryPDF.doc2anyCom")
strReturn = VeryPDFCom.doc2any(strCmd)
Response.write "Processing finished."
--------------------------

>>First page has logo header and footer including page number
>>Second page has different header and same footer with page number.
>>Please provide samples in VB.

Thanks for your message, you can include different headers into HTML contents itself, and then convert this HTML file to PDF file using doc2any SDK product.

You can also convert a simple HTML file to PDF file first, and then use PDFStamp Command Line to stamp different header and footer contents to the PDF pages, you can control the everything to the text stamps, e.g., text position, color, font size, etc., you can also add image stamps using PDFStamp Command Line software. We hope this solution will useful to you.

PDFStamp Command Line can be downloaded from following web page,

http://www.verypdf.com/app/pdf-stamp/try-and-buy.html

VeryDOC

HTMLPrint to Any Converter

How to use HTML2ANY to convert from HTML files to PDF files?

Hi,

We're trying to run HTML2ANY to convert an HTML file to a PDF file, and after a few times we execute the command (totally random) it suddenly freezes.

We've ran it with the window/console open, and when it froze it appeared to just be stuck on "Waiting for file ", and wouldn't display the html file in the window right before creating it.

We'd appreciate your help in providing us was to test/debug this to understand what could be the reason behind this.

Thanks in advance.
Customer
-----------------------------------------------

How to use HTML2ANY to convert from HTML files to PDF files?
It seems the IE freeze in your system, please kill all instances of "iexplore.exe" process to try again.

also, we have following solutions for you to make your HTML to PDF conversion better,

Solution 1,
You can use "-printtopdf2" option to convert HTML file to PDF file, for example,

html2any.exe -printtopdf2 D:\out.pdf http://www.google.com

"-printtopdf2" does support synchronous conversion, you can use this option to convert more HTML files to PDF files at same time.

"-printtopdf2" does use Webkit Engine to render HTML files.

Solution 2,
You can use "-printtopdf" option to convert HTML file to PDF file, for example,

html2any.exe -printtopdf D:\out.pdf http://www.verypdf.com

"-printtopdf" option does use IE as HTML Render Engine, it will install a virtual printer at background, print the HTML file to this virtual printer to create PDF file, this option doesn't support synchronous conversion, so you need convert all HTML files to PDF files one by one.

We hope above two solutions will useful to you, you may give them a try.

VeryDOC

School See Also:

HTML Converter Command Line (htmltools.exe):
http://www.verypdf.com/app/html-converter/try-and-buy.html#cmd

DOC to Any Converter

Use VeryPDFComRunCmd.exe to run doc2any.exe or configure MS Office (Word, Excel, PowerPoint) DCOM run inside an interactive user account

Hi,

I have purchase doc2any command line converter (end user license). it seems to be not working. I am using it from windows services. Can you please help me out?

Thanks,
Customer
-------------------------------------------------------
Thanks for your message, you can use VeryPDFComRunCmd.exe to run doc2any.exe from a Windows Service, please look at following web pages for more information,

https://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

Please arrange "VeryPDFCom.RunCmd" COM run inside an interactive user account, you will get it work from service properly.

You may also look at following web pages for more information,

https://www.verydoc.com/blog/how-to-call-doc2any-exe-from-php-source-code.html
http://www.verypdf.com/wordpress/201410/how-to-convert-word-documents-to-pdf-files-from-asp-source-code-41022.html

VeryDOC
-------------------------------------------------------
Will doc2any server license overcome this problem? or still i need to install doc2anyruncommand com component?

please advise asap.

Customer
-------------------------------------------------------
Is this installation is necessary? this needs to update my code as well. can't this possible using command line directly I am using now? if its working directly using command line it would be better for me to use.

Its working with demo version i downloaded when i was researching doc2any command line software and i test this again with trial version of doc2any command line its working fine. why i need to install com component?

Customer
-------------------------------------------------------
>Will doc2any server license overcome this problem? or still i need to install doc2anyruncommand com component?

Yes, you need purchase the Server License, the End User License is just for end customers who will use the software on their personal computers.

Yes, you need install VeryPDFComRunCmd.exe COM Component.

>>Is this installation is necessary? this needs to update my code as well. can't this possible using command line directly i am using now? if its working directly using command line it would be better for me to use.

No, you can't call the Command Line directly, because MS Office can't be run inside SYSTEM user account, you need use VeryPDFComRunCmd.exe COM Component to switch from SYSTEM user account to an interactive user account.

>>Its working with demo version i downloaded when i was researching doc2any command line software and i test this again with trial version of doc2any command line its working fine. why i need to install com component?

The com component is used to switch from SYSTEM user account to an interactive user account, this way will overcome the limitation of MS Office. However, if you can get Command Line works directly, you can also keep your work continue, so please don't worry about this matter.

VeryDOC
-------------------------------------------------------
My command line works directly on trial version and it's not working on register version of doc2any command line (end user license), why?

If I install VeryPDFComRunCmd.exe, will this change my code? Currently I am invoking doc2any.exe using "process.start()". Will the same work for COM component?

Thanks,
Customer
-------------------------------------------------------
If you will use VeryPDFComRunCmd.exe, you will need to change your source code, you need to call a COM instead of an EXE file, please refer to a simple ASP code at below,

<%

set VeryPDFCom = Server.CreateObject("VeryPDFCom.RunCmd")
dim nRetVal, bRet
bRet = VeryPDFCom.RunCmd("C:\windows\notepad.exe", 5, 0)
strRet = VeryPDFCom.RunCmd2("cmd /c dir C:\", 5)
Response.Write strRet & vbCrlf

%>

However, if you don't want to change your current source code, you can set MS Word DCOM run inside an interactive user account, please look at following web pages for more information,

https://www.verydoc.com/doc-to-any-faq.html
https://www.verydoc.com/blog/how-to-make-iis7-play-nice-with-office-interop.html
https://www.verydoc.com/blog/microsoft-excel-application-entry-missing-in-dcomcnfg.html
https://www.verydoc.com/others/configure%20office%20applications%20to%20run%20under%20the%20interactive%20user%20account.htm
https://www.verydoc.com/others/configure-word-and-excel.htm

after you configure MS Word DCOM run inside an interactive user account, e.g., Administrator user account, you can use "process.start()" to run doc2any.exe from a service properly.

VeryDOC