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
-----------------------------------------------

image
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

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
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

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: -1 (from 1 vote)
doc to any converter

I want convert office files (DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML) to PDF files from Windows Service

Hello,

I just bought a license for doc2any_cmd. When I start doc2any_cmd manually, it seems to work ok. But I wanted to call it from a windows service, so that it converts the files in the background.

When I start doc2any_cmd through my service (runs with the same user as it works normally), I get a different behavior.

Logfile when i start through the service:
…….
[OK] Open 'E:\webapps\R14620_Mautzusatz.docx' file successful.
[FAILED] Can't get DOC instances correctly.
[FAILED] Conversion failed, maybe you haven't MS Office or 'PDF and XPS SaveAs Add-in' installed.
Exit MS Office Add-in

when I start manually everything is ok:
[OK] Open 'E:\webapps\R14620_Mautzusatz.docx' file successful.
[OK] SaveAs to 'E:\webapps\work\R14620_Mautzusatz.pdf' file.
Exit MS Office Add-in

What does doc2any_cmd look for at this point? What does "[FAILED] Can't get DOC instances correctly." mean in this context?

thank you very much,
Customer
-----------------------------------------------
Thanks for your message, doc2any.exe is using MS Office to convert office files to PDF files, because MS Office can't be run from SYSTEM or Service user account, so you can't run doc2any.exe inside a Windows Service properly.

However, you can call "VeryPDFComRunCmd COM Component" from a Windows Service, and then call doc2any.exe application from "VeryPDFComRunCmd COM Component", this way will solve the MS Office's permission problem. Please refer to more information about "VeryPDFComRunCmd COM Component" from following web pages,

https://www.verydoc.com/exeshell.html#VeryPDFComRunCmd_COM_Component

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

You can also refer to more information about how to call doc2any.exe from a Windows Service from following web pages,

https://www.verydoc.com/blog/running-doc2any-from-java-program-by-run-as-service-option.html

https://www.verydoc.com/blog/run-doc2any-exe-from-windows-service-and-without-ms-office-installed.html

https://www.verydoc.com/blog/how-to-use-doc2any-from-a-windows-service.html

https://www.verydoc.com/blog/run-office-to-pdf-converter-or-doc2any-in-unattended-user-account.html

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

VeryDOC

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

I am looking for word doc file to get converted into swf

Dear Sir / Mam,

I have downloaded your doc2any converter and tried to convert doc file to swf file, It is able to convert the file, but the swf file is getting converted into two frames, I want it in one single frame and all data into vector format usable with Action Script 3 and I don't want any kind of animation or code within the swf file.

Also, I have multiple doc files can doc2any convert all doc files within subfolders recursively at one command.

Please let me know, if the same is possible.

--
Rajiv Patel
Customer
-----------------------------------

You can use "DOC to Any Converter Command Line" to convert office files to SWF files, "DOC to Any Converter Command Line" can be downloaded from this web page,

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

image
>>I want it in one single frame and all data into vector format usable with Action Script 3 and I don't want any kind of animation or code within the swf file.

You can run following command line to convert your multi-page DOC/DOCX file to multiple SWF files, one SWF file per page,

doc2any.exe example.docx   out%.swf

>>Also, I have multiple doc files can doc2any convert all doc files within
subfolders recursively at one command
.

Yes, you can run following command line to do the batch conversion function,

for /r D:\temp %F in (*.doc) do doc2any.exe "%F" "%~dpnF%.swf"

VeryDOC

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

How to use PDF Compressor SDK/COM? I have gotten "Unexpected error; quitting" when I try to register PDFCompressCom.exe

Hello,

I'm downloading the PDF Compressor SDK/COM from here,

https://www.verydoc.com/dl2.php/pdfcompressor_sdk.zip

but when I unzip the file and try to execute PDFCompressCom.exe (from pdfcompressor_sdk\bin\PDFCompressCom.exe ), I received the error "Unexpected error; quitting".

The same happened when running the install.bat - file (Following the next article),

https://www.verydoc.com/blog/how-to-test-pdf-compressor-sdk-from-c-source-code.html

But without this, when I tried to run the sample in the .zip - file, I'm receiving the error "An unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll Additional information: Value cannot be null."

This is because VeryPDFType is null after the line,

System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.PDFCompressCom");

Can you send me the fixed .exe, or any workaround, because I'm interested of your products and first want to try it in my applications?

Thanks!
Customer
--------------------------------------------------

image
Please run a cmd window by administrator privilege, and then run following command line, then you will able to register PDFCompressCom.exe properly,

PDFCompressCom.exe /regserver

We have created a new version of "PDF Compressor SDK" to you, please download it from following web page,

https://www.verydoc.com/pdfcompressor.html
https://www.verydoc.com/dl2.php/pdfcompressor_sdk.zip

after you download and unzip it to a folder, please run "install.vbs" file, you will register PDFCompressCom.exe properly, after that, you can run following VBScript code to compress your PDF files easily,

strFolderDir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName)

strInFile = strFolderDir & "\sample\test-color-image.pdf"
strOutFile = strFolderDir & "\sample\_out_test-color-image.pdf"
strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
strCmd = "-ci jpx -cidown -cidownres 150 -gi jpx -gidown -gidownres 150 -mi jbig2 -midown -midownres 150 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
MsgBox strCmd
Set VeryPDFCom = CreateObject("VeryPDF.PDFCompressCom")
strReturn = VeryPDFCom.PDFCompressor(strCmd)
msgbox strReturn

strInFile = strFolderDir & "\sample\test-color.pdf"
strOutFile = strFolderDir & "\sample\_out_test-color.pdf"
strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
strCmd = "-ci jpx -cidown -cidownres 150 -gi jpx -gidown -gidownres 150 -mi jbig2 -midown -midownres 150 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
MsgBox strCmd
Set VeryPDFCom = CreateObject("VeryPDF.PDFCompressCom")
strReturn = VeryPDFCom.PDFCompressor(strCmd)
msgbox strReturn

strInFile = strFolderDir & "\sample\test-bw.pdf"
strOutFile = strFolderDir & "\sample\_out_test-bw.pdf"
strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
strCmd = "-ci jpx -cidown -cidownres 150 -gi jpx -gidown -gidownres 150 -mi jbig2 -midown -midownres 150 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
MsgBox strCmd
Set VeryPDFCom = CreateObject("VeryPDF.PDFCompressCom")
strReturn = VeryPDFCom.PDFCompressor(strCmd)
msgbox strReturn

VeryDOC

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