DOC to Any Converter

What is a good option for converting Office documents to PDF or image from ASP?

Question:Basically, what i want to know is, is there any better option on VeryDOC than Apache POI to do a conversion of Office documents - docx,doc,xls,xlsx,odt to a PDF format. I have tried all these options, its working fine for smaller and simpler files. If the documents contains fields, objects, tables etc. those are not properly converted. None of these tools forums are active too. If possible we need to do use ASP only. Any one have any better suggestions?

Answer: According to your needs, maybe you can have a free trail of this software VeryDOC DOC to Any Converter, by which you can convert Office documents - docx,doc,xls,xlsx,odt to a PDF format. By this software, you can convert files with complicated objects, tables etc to PDF. And this software allows you to call it from ASP easily. This software allows you to convert all the printable files to PDF to image and set output properties. 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 DOC to Any Converter SDK/COM Version

  • This COM version allows you to call it together with Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc.
  • When downloading finishes, there will be a zip file. Please extract it to some folder then you can use it normally.

Step 2. Convert Office to PDF or image through ASP.

  • When you need to convert Office to PDF or image from ASP code, please refer to the following code templates:
  • Please by following steps to call doc2any.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 & "doc2any\doc2any.exe"
        DOCFile = RootPath & "test.doc"
        PDFFile = RootPath & "out.pdf"
        strCommandLine = EXEFile & " " & DOCFile & " " & PDFFile
        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.

By above code, we can convert doc to PDF without Office installed. Simply change input file formats then you can convert Office to PDF or image through ASP code. During the using, if you have any question, please contact us as soon as possible.

PDF to DWG Converter

How to convert PDF to DWG without PDF type limitation?

Question:I'm having a hard time converting PDF to DWG for. someone told me that cdr files have embedded bitmap, is there an easy way to convert PDF to corel file? Right now I'm running a really bad solution of, from my application. If anyone have good hands with it please share your idea with me and I hope there is a solution on VeryDOC ?

Answer: According to your needs, maybe you can have a free trial of this software VeryDOC PDF to DWG Converter, by which you can convert various PDF file to DWG. And this application is standalone version, when you run the conversion, you do not need to install CAD and PDF applications. It supports AutoCAD 2008, 2007, 2006, 2005, 2004, 2002, 2000, R14 etc. versions. This powerful program will help you convert your PDF files to usable and editable DWG or DXF files quickly and easily. This software can help you keep PDF font text as searchable and editable text (MTEXT) in DWG or DXF output. 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 PDF to DWG Converter Command Line

  • This is command line version software, so when downloading finishes, it is a zip file. Please extract it to some folder then you can call this software smoothly.
  • When you use this software, please refer to the usage and example.

Step 2. Convert PDF with embedded bitmap or font to DWG.

  • Here is the usage for your reference:pdf2dwg [options] <pdf-file> [<out-file>]
  • When you use this software, it can overcome embedded bitmap problem, simply run the conversion like the following command line templates:
    pdf2dwg.exe C:\*.pdf C:\*.dwg
    pdf2dwg.exe -ver 16 C:\test.dwg C:\test.dwg
  • -ver <int>  : set output format for DXF and DWG files, it can be selected from following values:
            1: dxf R21 file format (*.dxf)
            2: dxf R18 file format (*.dxf)
            3: dxf R15 file format (*.dxf)

  • By this software, you can also output DXF file. During the conversion, you can use the following parameters:
  • -drawtext <int> : set text conversion mode,
            1: draw text as polygons, convert all text to polygons
            2: convert only non standard characters to polygons
            3: convert text as ASCII text contents in CAD file
        -xscale <fp>    : scale by a factor in x-direction
        -yscale <fp>    : scale by a factor in y-direction
        -page <int>     : extract a specific page: 0 means all pages
        -rotate <int>   : rotate the output document, (0-360)
        -mm             : use mm coordinates instead of points in CAD file
                         (mm=pt/72*25.4)
        -ctl            : map colors to layers

By this software, you can convert PDF with embedded bitmap image to DWG without any problem. During the using, if you have any question, please contact us as soon as possible.

XPS to PDF and Image Converter

How to convert XPS to PDF and encrypt it by 128 bit AES encryption?

       When you need to convert XPS to PDF and encrypt output PDF by 128 bit AES encryption, maybe you can have a free trial of software VeryDOC XPS to PDF Converter, by which you can make it easily. AES has been adopted by the U.S. government and is now used worldwide. AES is a variant of Rijndael which has a fixed block size of 128 bits, and a key size of 128, 192, or 256 bits. AES 128 bit is adopted by Acrobat 7 or higher version.  After encryption, the output PDF will be much more safer to be transferred to your clients, customers or others.

  VeryDOC XPS to PDF 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. So it is quite good for those developers who need to develop some applications based on this one. Please check more information of this software on homepage, in the following part, let us check how to use this software.

Step 1. Free download XPS to PDF Converter Command Line

  • As it is command line version software, we have compressed it to zip file. When downloading finishes, there will be a zip file. Please extract it to some folder then you can use it normally.
  • When you use this software, please read website and readme.txt carefully then you will find that more functions of this software.

Step 2. Convert XPS to PDF and encrypt it by 128-bit AES.

  • When you use this software, please refer to its usage and examples.
  • Here is the usage:xps2pdf [options] <xps-file> [<out-file>]
  • When convert XPS to PDF and encrypt it by 128-bit encryption, please refer to the following command line template and parameters:
    xps2pdf.exe -ownerpwd 123 -keylen 2 -permission 128 C:\in.xps C:\out.pdf
  • -openpwd <string>     : Set 'open password' to PDF file
      -ownerpwd <string>    : Set 'owner password' to PDF file
      -keylen <int>         : Key length (40 or 128 bit)
            -keylen 0:  40 bit RC4 encryption (Acrobat 3 or higher)
            -keylen 1: 128 bit RC4 encryption (Acrobat 5 or higher)
           -keylen 2: 128 bit AES encryption (Acrobat 7 or higher)
      -permission <int>     : Restrictions
            -permission 0  : Deny anything
            -permission 1  : Allowed print the document
            -permission 2  : Allowed modify the content of the document
            -permission 4  : Allowed copy text and graphics from the document
            -permission 8  : Allowed add or modify annotations
            -permission 16 : Allowed fill in interactive form fields
            -permission 32 : Allowed extract text and graphics from the document
            -permission 64 : Allowed assemble the document
            -permission 128: Allowed print the document with high resolution

Please follow examples to run the conversion from XPS to PDF. During the using, if you have any question, please contact us as soon as possible.

PDF Password Remover

How to decrypt password protected PDF by command line?

When you need to decrypt PDF by command line, the following article will be quite helpful for you. VeryDOC PDF Password Remover either can be used as GUI version software or command line version software. When you use this software as GUI version, it is quite easy to operate. Please check usage in user guide, in the following part, I will show you how to decrypt PDF by command line.

This software can not remove open password if you do not know the open password. It can only remove open password under the condition of you have the right to move it. This software can be used to remove owner password directly. This software supports PDF 1.0-1.7 format, including 40-bit RC4, 128-bit RC4, 128-bit AES decryption, compressed files and unencrypted metadata. 

Step 1. Free download PDF Password Remover

  • As it can be used as GUI version, when downloading finishes, there will be an exe file. Please install this software by double clicking the exe file and following installation message till short cut icon showing up on desktop.
  • When you need to launch this software, please go to installation folder then you will find an exe file named pdfdecrypt.exe. You can call it from MS Dos Window to check usage, parameters and example.

Step 2. Decrypt PDF by command line.

  • When you use this software, please refer to the usage and example.
  • When call this software from MS Dos Windows, please refer to the following command line templates:
  • -i [pdf file name] : decrypt PDF filename or directory.
    -o [pdf file name] : PDF file will be generated.
       If you not specify the -o parameter, the default output file will overwrite the input PDF file.
    -u                 : user password.
    -w                 : owner password.
    -v                 : view the PDF file after decryption.
    -l [log file name] : specify log file for output message.
    -?                 : help.
    -h                 : help.
    --------------------------------------------------------------------
    Example:
         pdfdecrypt -i C:\sample.pdf -o C:\decrypt.pdf -w owner -u user -l C:\error.log
         pdfdecrypt -i C:\sample.pdf
         pdfdecrypt -i C:\sample.pdf -o C:\out.pdf -w "owner password"
         pdfdecrypt -i C:\sample.pdf -o C:\out.pdf -u "user password"
         pdfdecrypt -i C:\pdfdir\ -o D:\ -l C:\error.log

Please note this software can not be used to remove open password protected PDF directly. If you do not have permission to decrypt PDF, this software can not help you make it. During the using, if you have any question, please contact us as soon as possible.

PostScript to Text Converter

How to extract text from PS file without language limitation?

    When you need to extract text from PostScript image file without language limitation, maybe you can have a free trial of software VeryDOC Postscript to Text Converter. This software can help you extract text from PostScript of language English, French, German, Italian, Chinese Simplified, Chinese Traditional, Czech, Danish,Dutch, Japanese, Korean, Norwegian, Polish, Portuguese, Russian, Spanish, Swedish, Thai, etc. And this is command line version software, you can call it from other programming languages like Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. 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 Postscript to Text Converter

  • This is command line version software, when downloading finishes there will be a zip file. Please extract it to some folder then you can use it normally.
  • There are many versions of this software like command line version, SDK version, developer version and others. Please download the proper version according to your needs.
  • When you use this software, please note that this is Window application, you can not use it under Mac or Linux platforms.

Step 2. Extract text from PostScript

  • Here is the usage for your reference:ps2txt.exe [options] [Options] <PS Files>
  • When extract text from PostScript, 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

  • When you use this software, please do not take language reason into consideration as it can extract text from it automatically.
  • There are some parameters for your reference:
  • -firstpage <int> : when you need to specify the start page of converted PS file, please add this parameter. It is range from 1 to max page.
    -lastpage <int>  :The same with the above parameter, it is about last page to print, from 1 to max page.
    -nolayout        : when you run the conversion and don't need to maintain original physical layout, please add this parameter.
    -nopgbreak       : if you don't need to insert page breaks between pages, please add this parameter.
    -$ <string>      : when you need to register this software, please add this parameter after inputting registration key.

  • Meanwhile, this software also can help you extract text from EPS image file. Please use the same method to run the conversion.

During the using, if you have any question,please contact us as soon as possible. This software can read text in postscript and EPS files and outputs an ASCII rendering so it  is quite useful when trying to search or read the text contained in postscript and EPS files.