How to convert PDF to vector image inside a special user account from ASP code?

In this article, I will show you how to convert PDF to vector image switch between users from ASP code. This method is good when you need to run the conversion from PDF to vector on sever or public computer which has many different users with different accounts.  The vector image could be MF, WMF, SVG, Postscript (PS), EPS, SWF(Flash), XPS, HPGL, PCL etc. The software I use is named as VeryDOC PDF to Vector Converter, which is command line version software, it is quite helpful for developers. Please check more related information on homepage. In the following part, let us check how to use this software.

Step 1. Free download PDF to Vector Converter SDK Server License

  • If you do not need to use this software for developing, please simply use the command line version which also can satisfy your needs.
  • By the SDK server version, you can call this software from from ASP/PHP/C#/.NET/... etc. server side applications. And SDK version will be much more easier for those developers who need to develop software based on this software.
  • When downloading finishes, there will be a zip file. Please extract to some folder then you can check more related elements and information.

Step 2. Convert PDF to vector inside a special user from ASP code.

  • When you use this software, please refer to the code template, usage and help documents.
  • Here is one code template of converting PDF to flash inside a special user from ASP code. Simply change the output file formats and related parameters then you can run the conversion from PDF to vector image casually.
  • 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.

Please check more related code templates and parameters in help document. During the using, if you have any question, please contact us as soon as possible.

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

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!