DOC to Any Converter

Running Doc2Any from Java program by run as service option.

Hi,

I am working on an java customization application. The java application retrieves a file from the database, saves it to a folder on the server, and then attempts to run the doc2any process. However, when running the process I get an error that Excel cannot access the file.

While I could use the runasservice option, that doesn't give me any way to verify the successful creation of the PDF file.

Do you have any suggestions?

Thanks,
Customer
----------------------------------------------
You need set MS Word DCOM and MS Excel DCOM run inside an interactive 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/how-to-call-doc2any-exe-from-asp-code.html
https://www.verydoc.com/blog/running-doc2any-as-a-scheduled-task.html
https://www.verydoc.com/others/configure-word-and-excel.htm
https://www.verydoc.com/blog/failed-to-call-doc2any-exe-from-c-or-vb-net-source-code.html
https://www.verydoc.com/blog/cannot-test-doc2any-on-net.html
https://www.verydoc.com/blog/failed-to-call-doc2any-exe-from-java-application-to-convert-pptx-and-docx-files-to-pdf-files.html
https://www.verydoc.com/blog/run-doc2any-on-windows-2003-or-windows-2008-system.html
https://www.verydoc.com/blog/run-office-to-pdf-converter-or-doc2any-in-unattended-user-account.html
http://www.verypdf.com/wordpress/201106/doc2any-dcom-permissions-232.html

Please look at following web page for more information about how to give enough permission to MS Word DCOM or MS Excel DCOM service,

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

If you still can't get it work, please feel free to let us know.

VeryDOC

Metafile to PDF Converter

Is there a library to render Windows metafiles to a Cairo surface for converting to PDF?

Question:I'm trying to implement a PDF output target in an existing application which uses Windows metafiles (specifically, Aldus Placeable Metafiles) as one of its inputs. Is there a pre-existing library to render such metafiles to a Cairo surface (or some other PDF rendering library)? Is there any solution on VeryDOC?

Answer: When you need to convert Metafile to PDF by some library, you do not need to converting metafiles to a Cairo surface first and then to PDF as VeryDOC software Metafile to PDF Converter can help you convert Metafile to PDF  directly. By this software, we can also convert EMF, WMF and RTF files to Adobe PDF files. Metafile (EMF, WMF) to PDF supports the usual PDF features, including compression and 128 bit encryption and it was the first command line application to allow embedding of font subsets to reduce file size. Please check more information of this software on homepage, in the following part, I will show you how to use this software.

Step 1. Free download Metafile to PDF Developer License

  • When you need to use the library, please download the developer version. For uploading and downloading easily, we have compressed it to zip file.
  • When downloading finishes, please extract it to some folder then you can call it normally.

Step 2. Converting Metafile to PDF easily.

  • This converter is available via an easily integrated COM object (or DLL Library, or Command Line), enabling developers to access the converter via any programming or scripting languages, such as Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. Using the COM object (or DLL Library, or Command Line), file conversions can be done consecutively or simultaneously.
  • For showing conversion easily, here I will take the command line version parameters for example. Please check source code examples in download extracted folder.
  • When converting Metafile to PDF, please refer to the following command line templates and parameters:
  • emf2pdf.exe C:\in.emf C:\out.pdf
    emf2pdf.exe C:\*.emf C:\*.pdf
    emf2pdf.exe -append 2 -width 612 -height 792 C:\*.emf C:\out.pdf
    emf2pdf.exe -append 2 C:\*.emf C:\out.pdf
    Here are some parameters for your reference:
    -width <int>        : Set page width to PDF file
    -height <int>       : Set page height to PDF file
    -margin <string>    : Set page margin to PDF file
            -margin 10          : Set margin to 10pt to left
            -margin 10x10       : Set margin to 10pt to left,top
            -margin 10x10x10    : Set margin to 10pt to left,top,right
            -margin 10x10x10x10 : Set margin to 10pt to left,top,right,bottom

Please check more parameters and usage on homepage, I can not list all of them here as there are too many. During the using, if you have any question, please contact us as soon as possible.

PostScript to Text Converter

How to convert Postscript to text or image?

Question: Is there a Postscript to Text/Image Converter package? I need the command line version. Is there such package on VeryDOC?

Answer: Now on VeryDOC, we do not have software which can be used to convert Postscript to image, postscript to text by one software. But we have software which can help you make it in separated version. They are VeryDOC Postscript to Text Converter and VeryDOC Postscript to Image Converter. Both of them are command line version. Please check more information of those two software on homepage. in the following part, I will show you brief information of converting Postscript to image, postscript to text.

Converting postscript to text.

  • Download Postscript to Text Converter Command Line. When downloading finishes, it is a zip file. You need to extract it to some folder then you can call it normally from MS Dos Windows.
  • Please rest assured that all the VeryDOC software are free downloading, and there will be no virus taken in.
  • Here is the usage of software: ps2txt.exe [options] [Options] <PS Files>
  • When converting postscript to text, please refer to the following command line templates:
  • ps2txt.exe C:\input.ps C:\output.txt
    ps2txt.exe -nolayout C:\input.ps C:\output.txt
    Here is the parameters for reference:
    -firstpage <int>   : first page to print, from 1 to max page
    -lastpage <int>    : last page to print, from 1 to max page
    -nolayout          : don't maintain original physical layout
    -nopgbreak         : don't insert page breaks between pages

Converting Postscript to image

  • When converting Postscript to image, please download Postscript to Image Converter. Please use the same method like above software to make it work.
  • Here is the usage:ps2img [options] <-i PS File> [-o Output]
  • When converting Postscript to image, please refer to the following command line templates:
  • ps2img -c lzw -i C:\input.ps -o C:\output.tif
    ps2img -q 80 -i C:\input.ps -o C:\output.jpg
    ps2img -b 4 -i C:\input.ps -o C:\output.tif
    Here are some parameters for your reference:
    -i [input PS file]   : Input PS filename
    -o [output TIF file] : Output TIFF filename
    -g                   : Convert to 8-bit grayscale image file, this option
                           is only available while bitcount equal 8 (-b 8)
    -m                   : Set output to multi-page TIFF file, the
                           default is output to single page TIFF files
    -r [resolution]      : Set resolution in generated image files
        -r 300           : Set horizontal and vertical resolution to 300 DPI
        -r 200x300       : Set horizontal and vertical resolution to 200x300 DPI
        -r 204x98        : Set horizontal and vertical resolution to 204x98 DPI
    -f [first Page]      : First page to convert
    -l [last Page]       : Last page to convert
    -c [compress]        : Set compression method in generated image

Please get more information of them on homepage. By those two software, we can convert Postscript to image, postscript to text easily. During the using, if you have any question, please contact us as soon as possible.

PDF to Vector Converter

How to convert thousands of PDF to Postscript file in a specified folder?

Question:I've discovered multiple options for convert a few to several PDF into Postscript, but many are command-line programs with command-line limitations (this application lives on .NET). I need to run the conversion from ASP. And I must create the file first containing all 10,000 PDF and edit it in an additional pass, I'm OK with that, too. I should mention that speed is important. I need to print 10,000 at a time, but need to keep the printers busy 24-hours/day.Our application generates tens-of-thousands of PDFs that we need to send to a printer, except BEFORE the Postscript is printed we need to edit the Postscript to insert print command instructions (duplex, tray-pulls, highlight color, etc.) Is there a solution on VeryDOC?

Answer: When you need to convert thousands of PDF to postscript to postscript in a specified folder from ASP.net, maybe you can have a free trial of VeryDOC PDF to Vector Converter, by it you can convert PDF to postscript fast and accurately. When you need to output postscript in specified the output folder, simply use wild characters and write some bat files then you can solve this matter. By the SDK version of it, we can call it from Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. Using the COM object (or DLL Library, or Command Line), file conversions can be done consecutively or simultaneously.  In the following part, I will show you some example of how to call it.

Step 1. Free download PDF to Vector Converter SDK

  • There are two versions of the SDK for you to choose: developer version and server version. Please choose the proper version according to your needs.
  • When downloading finishes, please extract it to some folder then you can use it normally. This software is compressed to zip version for Windows.

Step 2. Convert thousands of PDF to postscript and specified output folder.

  • Here is the usage for your reference: pdf2vec.exe [options] [Options] <PDF Files>
  • Here are some command line examples for your reference:
  • pdf2vec.exe -psmode 0 C:\*.pdf C:\*.ps
    pdf2vec.exe -psmode 1 C:\in.pdf C:\out.ps
    pdf2vec.exe -psmode 2 C:\in.pdf C:\out.ps
    -psmode <int> : convert PDF file to vector Postscript file
       -psmode 0: convert PDF to Postscript via printer driver
       -psmode 1: convert PDF to Postscript via local interpreter 1
       -psmode 2: convert PDF to Postscript via local interpreter 2
    By those three parameters, we can print PDF file to local printers where you can edit it before processing according to your needs.

  • Here is an example of calling this software from ASP code, please have a check.
  • Please by following steps to call pdf2vec.exe inside a special user account,
    1. Please download and install EXEShell COM Library (freeware) from following URL first,
    https://www.verydoc.com/exeshell.html
    https://www.verydoc.com/download/exeshell.zip
    2. Please use following ASP code to run the conversion inside a special user account,
    ~~~~~~~~~~~~~~~~~
    <%
        Set comEXEShell = Server.CreateObject("exeshell.shell")
        RootPath = Server.MapPath(".") & "\"
        EXEFile = RootPath & "pdf2vec\pdf2vec.exe"
        PDFFile = RootPath & "test.pdf"
        SWFFile = RootPath & "out.swf"
        strCommandLine = EXEFile & " " & PDFFile & " " & SWFFile
        response.write strCommandLine & "<br>"
        comEXEShell.RunCommandLine "UserName", "Password", strCommandLine
        Set comEXEShell = Nothing
    %>
    ~~~~~~~~~~~~~~~~~
    Remark:
    You may encounter Error 1314 in some Windows systems when you switch between user accounts, this is caused by permission setting, please refer to the steps in #2 to solve the 1314 Error.

During the using, if you have any question, please contact us as soon as possible.

DOC to Any Converter

Run Office to PDF Converter or doc2any in unattended user account.

VeryDOC Office to PDF Converter I would like to know the system requirements for this to run. I would like also to know if this can be done using windows service running on the server. My purpose is to run this in unattended user.

Customer
-------------------------------------
Thanks for leaving a message for us.

It is GUI version. If you need to run this in unattended user, please choose Doc to Any Converter command line version.

VeryDOC
-------------------------------------
I tried using Command line version Doc to Any Converter and I tried it running under windows service but unfortunately, it hangs and the conversion fails. I believe the problem is when the program open the doc using WINWORD, the problem occurs because, I believe winword does not allowed unattended nor windows service.

Will you able to provide me solution for this to work under windows service?

Thanks in advance!
Customer
-------------------------------------
I would like also to know the system requirements of this tool.

Customer
-------------------------------------
You need set MS Word DCOM run inside an interactive 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/how-to-call-doc2any-exe-from-asp-code.html
https://www.verydoc.com/blog/running-doc2any-as-a-scheduled-task.html
https://www.verydoc.com/others/configure-word-and-excel.htm
https://www.verydoc.com/blog/failed-to-call-doc2any-exe-from-c-or-vb-net-source-code.html
https://www.verydoc.com/blog/cannot-test-doc2any-on-net.html
https://www.verydoc.com/blog/failed-to-call-doc2any-exe-from-java-application-to-convert-pptx-and-docx-files-to-pdf-files.html
https://www.verydoc.com/blog/run-doc2any-on-windows-2003-or-windows-2008-system.html

If you still can't get it work, please feel free to let us know.

>>I would like also to know the system requirements of this tool.

doc2any is support all version of Windows systems, from Windows 2000 to Windows 8, both 32bit and 64bit systems. It is support all versions of MS Office application.

VeryDOC