Convert PDF containing images,text to PostScript

Question:This may be an oft-repeated question but I have searched and found no convincing answer. Is there any way or tool or library that converts a PDF containing images,text, etc to PS(PostScript) ? Any help on VeryDOC would be greatly appreciated.

Answer: According to your needs, maybe you can have a free trial of this software VeryDOC PDF to Vector Converter, by which we can convert PDF containing images,text, etc to PS(PostScript) easily. And there are command line version, SDK version which containing library for you choose. No matter which version you choose, they can help you convert PDF to postscript easily. By this software, you can also convert PDF files to other scalable vector graphics formats, such as EMF, WMF, SVG, Postscript (PS), EPS, SWF (Flash), XPS, HPGL, PCL etc. 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 PDF to Vector Converter SDK Developer License

  • If you need to use library, please download the SDK version. When downloading finishes, there will be a zip file. You need to unzip it to folder then you can use it normally.
  • This software is licensed by per Developer, Royalty Free Runtime Desktop Distribution, can be run on any number of servers/computers.

Step 2. Convert PDF to postscript

  • When converting PDF to postscript, you may use the following parameters:
  • -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
       default is "-psmode 0"

  • Here is an code example of calling this software from VB.NET code directly.
  • Dim startInfo As System.Diagnostics.ProcessStartInfo
    Dim pStart As New System.Diagnostics.Process
    startInfo = New System.Diagnostics.ProcessStartInfo("C:\pdf2vec.exe")
    startInfo.Arguments = "C:\test.pdf C:\out.ps"
    pStart.StartInfo = startInfo
    pStart.Start()
    pStart.WaitForExit() 'Your code will wait at here until pdf2vec.exe exit

  • Please call pdf2vec.dll from C# code to convert PDF files to PS following the following code example:
  • using System;
    using System.Runtime.InteropServices;
    using System.IO;
    namespace VeryDocTestApp
    {
        public class SWFConverter
        {
            public SWFConverter()
            {
            }
            [DllImport("pdf2vec.dll", EntryPoint = "VeryPDF_PDF2Vector", SetLastError = true,
            CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention =
            CallingConvention.StdCall)]
            public static extern int VeryPDF_PDF2Vector(string strCommandLine);
            public int ConvertPdfToPS()
            {
                int nRet = VeryPDF_PDF2Vector("pdf2vec -psmode C:\test.pdf C:\out.ps");
            }
        }
    }

All those methods are available to all the PDF file no matter it contains image, text or others. 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!