DOC to Any Converter

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

Flash to Image Converter

Do you want to convert photos to flash video?

Looking for a quick and easy way to convert your beautiful photos to a flash slideshow? Don’t worry, VeryDOC Image to Flash Converter will help you fulfill the conversion quickly.

It’s  an application for creating Shockwave Flash (SWF) video from static images or gif animations and it supports various types of images, such as JPG, PNG, GIF, etc. It supports to set the width, height, frame rate and loop times of automatic play of the created flash video. Now you may be eager to konw how to use it, the following is your answer.

To begin with, of course, you have to finish the installation. Down the VeryDOC Image to Flash Converter, and choose somewhere on your computer disk to install the software by double clicking it. Installation for VeryDOC Image to Flash Converter is extremely quick in one or two seconds for the reason that its size is only 934KB. After finishing that, you can see the following welcome interface.

VeryDOC Image to Flash Converter  installation interface

You can have a look at the Options button before you add photos . It allows for basic setting, including PNG images setting and JPEG Images Setting,.

VeryDOC Image to Flash Converter images Setting interface

Then Click the Add Images button to add photos you want to convert. You can click the Remove All button supposing that you get  the wrong images file and want to modify it. Everything is ready as yet, please click Convert to carry out the processing. Of course you can choose any place to store the output file.

VeryDOC Image to Flash Converter add images interface

If you have questions in the process of conversion,  please visit VeryDoc support for more information.

@VeryDOC

Wanna convert flash to images?

You may meet this kind of situation in your life : when you are enjoying  your flash videos  comfortably in a nice afternoon, you can’t help  wishing that  the video flash can be turned into images , so the problem comes into being:  how to convert this flash video to  images ?  can you do that if you’re on your own?  Of course ,  VeryDOC Flash to Image Converter will be pleased to give you a hand. Aiming at  presenting you  a  simple method ,   detail introduction will ,which are as follows。

1 Download the software of VeryDOC Flash to Image Converter , by clicking  the  Free Trial  icon or the Buy Now icon,.you can download it quickly in that its size is only 2.4MB, then  choose somewhere to install.

2  After finishing that, have a look at its main interface, click  the Add SWF File(s),  choose the flash video you want to convert.main interface of  VeryDOC Flash to Image Converter

3 click the options button, the setting interface includes convert format,compress mode ,size and Origentation, special effects  and so on will  come into your sight,you can choose any contend you want .

 output setting interface of  VeryDOC Flash to Image Converter

4 Then  click  ok  button and  convert button next, it will present you a interface and let you choose the  place you lay  the images.

5 Everything has been arranged, and Your mind is realized.

For getting more information about the tool  or  you have met some questions in the process ,please  contact the support team of VeryDOC.

@VeryDOC

VeryDOC Flash to Image Converter

Encounter the problem that you have convert your flash video to images? Don't worry, Just several simple operations of VeryDOC Flash to Image Converter will make your ideas come true , the following introduction is your answer, just have a look at it.  The instructions on it tell you how to take it. Make sure you read them carefully.

Download VeryDOC Flash to Image Converter and install it by double clicking the installer. You can use the trial version if you like. Of course,  no such thing as a free lunch , there's a limit to the number of times.  Click Add SWF File9(s) button on the application interface of VeryDOC Flash to Image Converter  to open the flash files you want to convert,  when you finish, it  allows for arbitrary naming and saving.

main  converting  interface of VeryDOC Flash to Image Converter

You can  convert  flash video frames to various image formats, e.g., swf to gif, swf to jpg, swf to tiff, swf to png, swf to bmp, swf to pcx, swf to tga, swf to psd, swf to pcd, swf to ufo, swf to fpx, swf to dxf, swf to cdr, and swf to eps,and so on.You can set set the width, height, frame rate and loop times of automatic play of the created flash video freely .

It supports to rotate, reverse and resize the  converted images and it can run in 32-bit and 64-bit Windows 98/ME/NT/2000/XP/Vista/2008/7 systems  in the case that you install Adobe Flash Player Plugin.

It’s easy and convenient, powerful and   incredible, it  give you  good experience in the process of converting,No doubt about that,  he save you time, especially in batch operations involving multiple files,and this is  VeryDOC Flash to Image Converter

If you have any questions in the process of  conversion from flash video frames to various image formats  or  something about VeryDOC Flash to Image, Please leave your messages or contact the support team of VeryDOC.

@VeryDOC SDK & COM & CLI

Analyse PDF Text Contents by PDF Parser & Modify SDK from VC++

PDF Parser & Modify SDK can be downloaded from following web page,

 

https://www.verydoc.com/pdfparsersdk.html

 

You can use following VC++ source code to extract text contents from PDF file, you can also use following source code to replace text contents in PDF file easily.

 

#include <windows.h>

#include <assert.h>

#include <stdio.h>

#include <io.h>

#include <vector>

using namespace std;

/*

"lpOptions" parameter supports following options:

 

-f <int>           : first page to convert

-l <int>           : last page to convert

-r <int>           : resolution for both X and Y, in DPI (default is 150)

-opw <string>      : owner password (for encrypted files)

-upw <string>      : user password (for encrypted files)

-html              : output text information in HTML format instead of CSV format

*/

 

typedef int (WINAPI *PDFParserSDKFunc)(char *lpPDFFile, char *lpOutFile, char *lpOptions);

typedef int (WINAPI *PDFParserSDKFromMemoryFunc)(LPBYTE lpPDFData, int nDataLen, char *lpOutFile, char *lpOptions);

typedef HANDLE (WINAPI *PDFParserSDK_GetHandleFunc)(char *lpPDFFile, char *lpOptions);

typedef int (WINAPI *PDFParserSDK_ParseFunc)(HANDLE hPDFParserData, char *lpOptions);

typedef int (WINAPI *PDFParserSDK_GetCountFunc)(HANDLE hPDFParserData);

typedef int (WINAPI *PDFParserSDK_GetImageLengthFunc)(HANDLE hPDFParserData, int nIndex);

typedef int (WINAPI *PDFParserSDK_GetImageDataFunc)(HANDLE hPDFParserData, int nIndex, LPBYTE lpData, int nBufLen);

typedef int (WINAPI *PDFParserSDK_GetTextInfoLengthFunc)(HANDLE hPDFParserData, int nIndex);

typedef int (WINAPI *PDFParserSDK_GetTextInfoDataFunc)(HANDLE hPDFParserData, int nIndex, LPBYTE lpData, int nBufLen);

typedef int (WINAPI *PDFParserSDK_FreeFunc)(HANDLE hPDFParserData);

typedef int (WINAPI *PDFParserSDK_GetPageCountFunc)(char *lpPDFFile);

typedef int (WINAPI *PDFParserSDK_GetAllPagesCountFunc)(HANDLE hPDFParserData);

 

PDFParserSDKFunc PDFParserSDK = NULL;

PDFParserSDKFromMemoryFunc PDFParserSDKFromMemory = NULL;

PDFParserSDK_GetHandleFunc PDFParserSDK_GetHandle = NULL;

PDFParserSDK_ParseFunc PDFParserSDK_Parse = NULL;

PDFParserSDK_GetCountFunc PDFParserSDK_GetCount = NULL;

PDFParserSDK_GetImageLengthFunc PDFParserSDK_GetImageLength = NULL;

PDFParserSDK_GetImageDataFunc PDFParserSDK_GetImageData = NULL;

PDFParserSDK_GetTextInfoLengthFunc PDFParserSDK_GetTextInfoLength = NULL;

PDFParserSDK_GetTextInfoDataFunc PDFParserSDK_GetTextInfoData = NULL;

PDFParserSDK_FreeFunc PDFParserSDK_Free = NULL;

PDFParserSDK_GetPageCountFunc PDFParserSDK_GetPageCount = NULL;

PDFParserSDK_GetAllPagesCountFunc PDFParserSDK_GetAllPagesCount = NULL;

 

typedef HANDLE (WINAPI *VeryPDF_ModifyPDF_OpenFileFunc)(char *lpInPDFFile, char *lpOutPDFFile);

typedef BOOL (WINAPI *VeryPDF_ModifyPDF_CloseFileFunc)(HANDLE hPDF);

typedef BOOL (WINAPI *VeryPDF_ModifyPDF_ModifyTextFunc)(HANDLE hPDF, int nPage, int x, int y, int nWidth, int nHeight, char *lpOldText, char *lpNewText);

typedef void (WINAPI *VeryPDF_ModifyPDF_SetCodeFunc)(char *lpLicenseKey);

 

VeryPDF_ModifyPDF_OpenFileFunc VeryPDF_ModifyPDF_OpenFile = NULL;

VeryPDF_ModifyPDF_CloseFileFunc VeryPDF_ModifyPDF_CloseFile = NULL;

VeryPDF_ModifyPDF_ModifyTextFunc VeryPDF_ModifyPDF_ModifyText = NULL;

VeryPDF_ModifyPDF_SetCodeFunc VeryPDF_ModifyPDF_SetCode = NULL;

 

#define LICENSE_KEY_PDFPARSERSDK "XXXXXXXXXXXXXXXXXXX"

#define LICENSE_KEY_PDFMODIFYSDK "Your License Key for PDF Modify SDK"

 

void GetModulePath(char *out_path,char *in_name)

{

       char *p;

       GetModuleFileName(NULL,out_path,256);

       p =strrchr(out_path,'\\');

       p[1]=0;

       strcat(out_path,in_name);

}

 

int TestPDFParserSDKInMemory(char *lpInFile, char *lpOutFile)

{

       LPBYTE lpData = NULL;

       int nLength = 0;

       FILE *file = fopen(lpInFile,"rb");

       if(!file)

              return -1001;

       nLength = _filelength(fileno(file));

       if(nLength <= 0)

       {

              fclose(file);

              return -1002;

       }

       lpData = new BYTE[nLength];

       if(lpData == NULL)

              return -1003;

       fread(lpData,1,nLength,file);

       fclose(file);

       int nRet = PDFParserSDKFromMemory(lpData, nLength, lpOutFile, "-$ "LICENSE_KEY_PDFPARSERSDK);

       delete []lpData;

      

       return nRet;

}

HMODULE LoadPDFLibrary()

{

       int nRet = 0;

       char szLibPath[_MAX_PATH];

       GetModulePath(szLibPath, "pdfparsersdk2.dll");

       HMODULE dll_handle = LoadLibrary(szLibPath);

       if(dll_handle == NULL)

              return FALSE;

       PDFParserSDK = (PDFParserSDKFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK");

       PDFParserSDKFromMemory = (PDFParserSDKFromMemoryFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDKFromMemory");

       PDFParserSDK_GetHandle = (PDFParserSDK_GetHandleFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK_GetHandle");

       PDFParserSDK_Parse = (PDFParserSDK_ParseFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK_Parse");

       PDFParserSDK_GetCount = (PDFParserSDK_GetCountFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK_GetCount");

       PDFParserSDK_GetImageLength = (PDFParserSDK_GetImageLengthFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK_GetImageLength");

       PDFParserSDK_GetImageData = (PDFParserSDK_GetImageDataFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK_GetImageData");

       PDFParserSDK_GetTextInfoLength = (PDFParserSDK_GetTextInfoLengthFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK_GetTextInfoLength");

       PDFParserSDK_GetTextInfoData = (PDFParserSDK_GetTextInfoDataFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK_GetTextInfoData");

       PDFParserSDK_Free = (PDFParserSDK_FreeFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK_Free");

       PDFParserSDK_GetPageCount = (PDFParserSDK_GetPageCountFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK_GetPageCount");

       PDFParserSDK_GetAllPagesCount = (PDFParserSDK_GetAllPagesCountFunc)GetProcAddress(dll_handle, "VeryPDF_PDFParserSDK_GetAllPagesCount");

 

       VeryPDF_ModifyPDF_OpenFile = (VeryPDF_ModifyPDF_OpenFileFunc)GetProcAddress(dll_handle, "VeryPDF_ModifyPDF_OpenFile");

       VeryPDF_ModifyPDF_CloseFile = (VeryPDF_ModifyPDF_CloseFileFunc)GetProcAddress(dll_handle, "VeryPDF_ModifyPDF_CloseFile");

       VeryPDF_ModifyPDF_ModifyText = (VeryPDF_ModifyPDF_ModifyTextFunc)GetProcAddress(dll_handle, "VeryPDF_ModifyPDF_ModifyText");

       VeryPDF_ModifyPDF_SetCode = (VeryPDF_ModifyPDF_SetCodeFunc)GetProcAddress(dll_handle, "VeryPDF_ModifyPDF_SetCode");

       return dll_handle;

}

int Test_PDFParserSDK_1(char *pdf_filename, char *out_filename)

{

       int nRet = 0;

       nRet = PDFParserSDK(pdf_filename, out_filename, "-html -$ "LICENSE_KEY_PDFPARSERSDK);

       return nRet;

}

 

int Test_PDFParserSDK_2(char *pdf_filename, char *out_filename)

{

       int nRet = 0;

       nRet = TestPDFParserSDKInMemory(pdf_filename, out_filename);

       return nRet;

}

int Test_PDFParserSDK_3(char *pdf_filename, char *out_filename)

{

       int nRet = 0;

       HANDLE hPDFSDK = PDFParserSDK_GetHandle(pdf_filename, "-$ "LICENSE_KEY_PDFPARSERSDK);

       if(hPDFSDK == NULL)

              return nRet;

       int nCount = PDFParserSDK_GetCount(hPDFSDK);

       for(int i = 0; i < nCount; i++)

       {

              int nImageDataLen = PDFParserSDK_GetImageLength(hPDFSDK, i);

              int nTextInfoLen = PDFParserSDK_GetTextInfoLength(hPDFSDK, i);

              vector<BYTE> vecImgData;

              vector<BYTE> vecTxtData;

              vecImgData.resize(nImageDataLen);

              vecTxtData.resize(nTextInfoLen);

              PDFParserSDK_GetImageData(hPDFSDK, i, vecImgData.begin(), vecImgData.size());

              PDFParserSDK_GetTextInfoData(hPDFSDK, i, vecTxtData.begin(), vecTxtData.size());

       }

       PDFParserSDK_Free(hPDFSDK);

       hPDFSDK = NULL;

       return nRet;

}

int Test_PDFParserSDK_4(char *pdf_filename, char *out_filename, char *lpOptions)

{

       int nRet = 0;

       int nPageCount = PDFParserSDK_GetPageCount(pdf_filename);

       for(int page = 1; page <= nPageCount; page++)

       {

              printf("Parser page %d ...\n", page);

              char szOptions[300];

              sprintf(szOptions, "-$ "LICENSE_KEY_PDFPARSERSDK" -f %d -l %d", page, page);

              if(lpOptions)

              {

                     strcat(szOptions, " ");

                     strcat(szOptions, lpOptions);

              }

              HANDLE hPDFSDK = PDFParserSDK_GetHandle(pdf_filename, szOptions);

              if(hPDFSDK == NULL)

                     break;

              int nCount = PDFParserSDK_GetCount(hPDFSDK);

              for(int i = 0; i < nCount; i++)

              {

                     int nImageDataLen = PDFParserSDK_GetImageLength(hPDFSDK, i);

                     int nTextInfoLen = PDFParserSDK_GetTextInfoLength(hPDFSDK, i);

                     vector<BYTE> vecImgData;

                     vector<BYTE> vecTxtData;

                     vecImgData.resize(nImageDataLen);

                     vecTxtData.resize(nTextInfoLen);

                     PDFParserSDK_GetImageData(hPDFSDK, i, vecImgData.begin(), vecImgData.size());

                     PDFParserSDK_GetTextInfoData(hPDFSDK, i, vecTxtData.begin(), vecTxtData.size());

              }

              PDFParserSDK_Free(hPDFSDK);

              hPDFSDK = NULL;     

       }

       return nRet;

}

 

int Test_PDFParserSDK_ModifyPDF()

{

       char szPDFFile[_MAX_PATH];

       GetModulePath(szPDFFile, "example1.pdf");

       char szOutPDFFile[_MAX_PATH];

       GetModulePath(szOutPDFFile, "_modified.pdf");

      

       VeryPDF_ModifyPDF_SetCode(LICENSE_KEY_PDFMODIFYSDK);

 

       HANDLE hPDF = VeryPDF_ModifyPDF_OpenFile(szPDFFile, szOutPDFFile);

       if(hPDF == NULL)

              return 0;

 

       int nPage = 1;

       //The default DPI for these values is 72DPI

       int dpi = 72;

       int x         = 319*72/dpi;

       int y         = 56*72/dpi;

       int nWidth    = 37*72/dpi;

       int nHeight = 7*72/dpi;

       char *lpOldText = "September";

       char *lpNewText = "VeryPDF";

       BOOL bRet = VeryPDF_ModifyPDF_ModifyText(hPDF, nPage, x, y, nWidth, nHeight, lpOldText, lpNewText);

       VeryPDF_ModifyPDF_CloseFile(hPDF);

       return 1;

}

 

int main(int argc, char* argv[])

{

       if(argc != 3)

       {

              printf("%s test.pdf out.png\n", argv[0]);

              return 0;

       }

       int nRet = 0;

       char *pdf_filename = argv[1];

       char *out_filename = argv[2];

       HMODULE hPDFLib = LoadPDFLibrary();

       if(hPDFLib == NULL)

              return 0;

       int nTime1 = GetTickCount();

       /////////////////////////////////

       nRet = Test_PDFParserSDK_1(pdf_filename, out_filename);

       //nRet = Test_PDFParserSDK_2(pdf_filename, out_filename);

       //nRet = Test_PDFParserSDK_3(pdf_filename, out_filename);

       //nRet = Test_PDFParserSDK_4(pdf_filename, out_filename, NULL);

       //nRet = Test_PDFParserSDK_4(pdf_filename, out_filename, "-noimg");

       nRet = Test_PDFParserSDK_ModifyPDF();

       /////////////////////////////////

       int nTime2 = GetTickCount();

       printf("Spend Time: %dms (%.2fs)\n", nTime2-nTime1, (nTime2-nTime1)/1000.0);

       FreeLibrary(hPDFLib);

       return nRet;

}