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

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

I am looking for word doc file to get converted into swf
>>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

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

How to use PDF Compressor SDK/COM? I have gotten "Unexpected error; quitting" when I try to register PDFCompressCom.exe
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

PDF Viewer OCX Control

PDF Viewer SDK for Windows 10 and iOS Mobile

Hello,

We are developing a Windows 10 Universal app in which we would like to integrate a pdf view. In this view, we need the pdf rendering (with all usual features like pinch zoom, swipe to change pages etc. ...), access to documents bookmarks, handwrite annotations and document saving (with new annotations).

The professional version of your "VeryPDF PDF for Mobile SDK" seem to do all we need.

Do you have a trial version of the SDK, or windows app samples we could use to test the sdk?

Thank you for you answers.

Best regards
Customer
-------------------------------------------
Thanks for your message, yes, we have a "VeryPDF AnyFile Viewer" for test purpose, you may download the trial version from this web page to try,

https://itunes.apple.com/us/app/verypdf-anyfile-viewer/id937028892?mt=8

"VeryPDF AnyFile Viewer" is based on "VeryPDF PDF for Mobile SDK", "VeryPDF AnyFile Viewer" can be used to view PDF and other document formats. We are also provide source code license for the "VeryPDF AnyFile Viewer", after you purchase it, we will provide all source code of "VeryPDF AnyFile Viewer" to you, if you wish purchase it, please feel free to let us know, we will provide a quotation to you shortly.

VeryDOC
-------------------------------------------
Thank you for your quick answer,

I already installed the iPad app, but I can't really test the features I need.

In fact when I try to open the sample pdf (pdfeditor.pdf), clicking on the "View PDF" menu, it doesn't work. I'm only able to open the pdf by clicking the "QuickLook" menu.

So I have no bookmarks and no annotations possibilities.

Don't you have any sample for windows 10? I would like to see how the rendering is on a MS surface.

Regarding the license, we would first need a professional version for one application, and we will need a second license shortly for another application.

Customer
-------------------------------------------
VeryDOC PDF Viewer OCX Control is support Windows 10, you may download it from this web page to try,

https://www.verydoc.com/pdf-viewer-ocx.html
https://www.verydoc.com/pdfviewerocx.zip

For the problem of "View PDF" menu on iPad, can you please let me know what version of iOS system are you using? we will research this problem quickly.

VeryDOC
-------------------------------------------
Hi,

I will tell you the iOS version on which it's not working later today. I don't have it with me.
I've been able to have it work on a iPad2 with iOS 7. The rendering is OK but I can't see the bookmarks, and I can't test the annotations feature.

With the ActiveX, the rendering is OK, the bookmarks also, but we cannot test the annotations. Do you have some documentation for the ActiveX so we can test that ?

Don't you have any test/trial/restricted version of the VeryPDF PDF for Mobile SDK ? We really must test the few features we need before buying it.

Thx
Customer
-------------------------------------------
Our "AnyFile Viewer for iOS" is not support bookmarks and annotations yet, we will support them in the next minor version.

PDF Reader OCX does support bookmarks and annotations, if you can't get them work, please send to us your sample PDF file, we will test your PDF file and come back to you asap.

Sorry, we haven't a trial version for "VeryPDF PDF for Mobile SDK" yet, in the meantime, you can test PDF Viewer function in the "AnyFile Viewer for iOS" app, if you need some special features, please feel free to let us know, we will add these features and provide a new version to you asap, we hope this solution will okay to you.

VeryDOC
-------------------------------------------
Hello,

The iOS version on which it's not working is iOS 9.1.

Regarding the ActiveX, we just want a technical documentation, so we can see how to call the methods.

As I told you, the rendering and the bookmarks are working.

For the annotations, we found a method called "EnableAnnotations", but it has no effect. It's not a pdf problem, we just don't know how to call this in our code.

Do you have a pdf or html or online documentation ?

Customer
-------------------------------------------
Thanks for your message, we will test it on iOS 9.1 shortly.

>>Regarding the ActiveX, we just want a technical documentation, so we can see how to call the methods.
>>Do you have a pdf or html or online documentation ?

PDF Viewer OCX Control is contain following methods, you can call them from .NET or other program languages easily.

PDF Viewer OCX Control is contain following methods,

Methods in PDF Viewer OCX Control (ActiveX):
1. BOOL OpenPDF(LPCTSTR lpszPDFFile, ...)
2. ClosePDF()
Description: Open and close PDF Viewer window.

3. void SetFindText(LPCTSTR lpszFindText)
4. void FindNextText()
5. void FindPreviousText()
Description: Search text string in PDF pages.

6. void RotateViewLeft()
7. void RotateViewRight()
Description: Rotate PDF pages.

8. void ViewNextPage()
9. void ViewPreviousPage()
10. void ViewFirstPage()
11. void ViewLastPage()
12. void ViewPage()
Description: Move between PDF pages.

13. void ZoomFitPage()
14. void ZoomActualPage()
15. void ZoomFitWidth()
16. void Zoom(float nZoom)
17. void ZoomIn()
18. void ZoomOut()
Description: Zoom PDF pages.

19. void ViewModeSinglePage()
20. void ViewModeFacing()
21. void ViewModeContinuous()
22. void ViewModeContinuousFacing()
23. void SetViewMode(long nViewMode)
Description: View PDF pages in different modes.

24. void ShowHideBookmarks()
Description: Show or hide bookmark window.

25. void SetRegCode(LPCTSTR lpszRegCode)
Description: Set License Key to PDF Viewer OCX

>>As I told you, the rendering and the bookmarks are working.
>>For the annotations, we found a method called "EnableAnnotations", but it has no effect. It's not a pdf problem, we just don't know how to call this in our code.

The "EnableAnnotations" method is outdated, the latest version of PDF Viewer OCX has already supported Annotations automatically.

Please download the latest version of PDF Viewer OCX from this URL,

https://www.verydoc.com/pdfviewerocx.zip

This package is contain a "test.pdf" file, this PDF file is contain bookmarks and annotations, you can try to open this PDF file in PDF Viewer OCX, you will see bookmarks and annotations on the first page.

PDF Viewer SDK for Windows 10 and iOS Mobile

If you can't see annotations in your PDF file, please feel free send to us your sample PDF file, we will test your PDF file and come back to you asap.

VeryDOC

DOC to Any Converter

is your solution of Office to any conversion based on Microsoft office???

Is your solution of Office to any conversion based on Microsoft office???

Customer
-------------------------------------------
Yes and No.

For the DOC to Any Converter Command Line software,

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

  • If your system has MS Office installed, DOC to Any Converter Command Line will use MS Office.
  • If your system hasn't MS Office installed, but have OpenOffice installed, DOC to Any Converter Command Line will use OpenOffice.
  • If your system hasn't both MS Office and OpenOffice installed, DOC to Any Converter Command Line will use ourself's Office to PDF Converter technologies.

doc2any.exe will try by following steps,

  1. Try to use MS Office to convert this DOC to PDF file, if fails, go to next step,
  2. Try to use OpenOffice to convert this DOC to PDF file, if fails, go to next step,
  3. Try to use ourself's DOC Render to convert this DOC to PDF file, if fails, print an error message to console,

If you don't use "-useoffice" option, doc2any.exe will take care of everything automatically.

is your solution of Office to any conversion based on Microsoft office???

Please also refer to following web pages for more information,

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

https://www.verydoc.com/blog/how-to-convert-doc-to-html-without-ms-office-and-openoffice.html

https://www.verydoc.com/blog/how-to-convert-xls-to-csv-without-ms-office-and-openoffice.html

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

VeryDOC