PDF to Vector Converter

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.

PDF Compressor

Tips for making PDF smaller

Question:I'm generating PDF from HTML from C# and the files are coming out a reasonable size. However, I'm interested in any tips anyone has for making the PDF as small as possible.The HTML being rendered is really basic, just a table of names and dates etc - doesn't have to be too pretty.  Is there any solution on VeryDOC?

Answer: According to your needs, maybe you can have a free trial of software VeryDOC PDF Compressor, by which you can reduce PDF file size up to 40-95% using format optimization technology for PDF file compression. According to your description, most of your PDF files belongs to text based PDF file converted from HTML file, so you can compress PDF using compressing font method. And this software command line version, if you need to call it together from C#, it is also available. Please check more related information of this software on homepage, in the following part, let us check how to use this software.

Step 1. Free trial of PDF Compressor Command Line

  • Please download PDF Compressor Command Line to your computer and then you can free trial of it more than tens of times. All the VeryDOC software are free trial.
  • When downloading finishes, there will be a zip file. Please extract it to some folder and check help documents, executable file and other files. If you need to use the SDK version, now it is not available. Please contact us then we will make it for you at once.

Step 2. Compress PDF for making PDF smaller

  • When you use this software, please refer to the usage and example. Here is the usage for your reference:
    pdfcompressor [options] <pdf-file> [<out-pdf>]
  • When compressing text based PDF, please refer to the following command line templates.
  • pdfcompressor.exe -embedallfonts -subsetfonts -compressfonts C:\in.pdf C:\out.pdf
    By this command line, we can embed PDF all fonts and subset fonts to achieve aims of compressing PDF.
    pdfcompressor.exe -winfont -embedallfonts -subsetfonts -compressfonts C:\in.pdf C:\out.pdf
    By this command line we can replace PDF fonts by window fonts to compress PDF.
    pdfcompressor.exe -subsetfonts C:\in.pdf C:\out.pdf
    By this command line,we can subset font to compress PDF file.
    Please check related parameters:
    -winfont       : Use Windows fonts to replace Base14 fonts
    -embedallfonts : Embed all fonts
    -subsetfonts   : Subset fonts
    -compressfonts : Compress fonts

By above command line and parameters, we can compress PDF to make PDF much smaller. This method is extremely good for making PDF full of text smaller. During the using, if you have any question, please contact us as soon as possible.

DOC to Any Converter

How to convert background color and images within html to PDF?

In this article, I will show you a method of converting HTML to PDF and keeping background color and images in output PDF file. Meanwhile this method also can be used to convert HTML to PDF and disable background color and images. The software I use is named as VeryDOC Doc Converter COM, which is COM object for developers. By it you can develop software for file format conversion like converting files of Microsoft Word, PowerPoint, Excel, JPG, PNG, GIF, HTML and others to PDF based on this software. Here I will take converting HTML to PDF and keeping background color and images for example to show you how to use this software.

Step 1. Free trial Doc Converter COM

  • As this is COM software, we have compressed it to zip file. When downloading finishes, please extract it to some folder then you can find executable file, dll and other code templates.
  • When install this software, please refer to the following steps.
  • 1.1. Please download and install PDFcamp Printer v2.3 or PDFcamp Printer Pro v2.3 from our website,
    http://www.verypdf.com/pdfcamp/pdfcamp_setup.exe
    1.2. Please download DocConverter COM from our website,
    http://www.verypdf.com/pdfcamp/doc2pdf_com_trial.zip
    1.3. Please unzip "doc2pdf_com_trial.zip" package to a folder, and run "install_as_exe.bat" file to install the DocConverter COM into your system,
    1.4. Then you can run HTML2PDF.exe from command line to try, HTML2PDF.exe is a Windows Command Line Tool, you can run it from command line window.

Step 2. Convert HTML to PDF and keeping background color and images.

  • When converting HTML to PDF together with other applications like Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc, please refer to following code template:
  • <%
                            set PdfCreator = server.createobject("PdfOut.PdfCreator")
                            PdfCreator.html2PDF= "http://www.google.com/"
                            PdfCreator.fileName = "C:/google.pdf"
                            result = PdfCreator.Doc2PDFViaSocket()
                            set PdfCreator = nothing
                    %>

    And when converting HTML to PDF and keeping background color and image, please add the following command line templates:
    "html2pdf.exe" "http://www.verypdf.com/pdfcamp/pdfcamp.htm" "C:/output.pdf" "PrintHTMLBackground=yes"
    If you do not need to keep background color and image, please refer to the following one:
    "html2pdf.exe" "http://www.verypdf.com/pdfcamp/pdfcamp.htm" "C:/output.pdf" "PrintHTMLBackground=no"

When you use this software for HTML to PDF conversion, please make sure that you have PDFcamp and Windows Internet Explorer 5.0 or newer installed, or else the conversion can not be done successfully.

By this software, you can do lots of jobs for file formats conversion. You can print any kind of file which could be opened normally to PDF by this application.  Please check more information of this software on homepage, during the using, if you have any question, please contact us as soon as possible.

PDF Compressor

What is the maximum extent of compressing PDF file?

Question:Whenever I try to compress a PDF file to a lower possible size, by either using ghost script or other products, I end up having a file near to half the size of original. But lately, I am getting files of size in 1000 MB range, which are compressing to say a few hundreds. Can we further reduce them? The PDF is made from jpg images which are of higher resolutions, cant we reduce the size of those images and further bring in some more reduction in size, hoping there is a solution on VeryDOC?

Answer:According to your needs, maybe you can have a free trial of this software:VeryDOC PDF Compressor, by which we can compress image PDF by reducing image resolution and keeping its quality. No matter color image, grey image or other mono color image, there is also a solution to compress PDF by this software. Please check more detail information of this software on homepage, in the following part, I will show you how to use this software.

Step 1. Free download PDF Compressor Command Line

  • This is command line version software, so we compressed it to zip file. When downloading finishes, please extract it to some folder then you can check help documents and executable file.
  • There are many versions of this software like SDK sever version or developer version, you can choose the proper version according to your needs.

Step 2. Compress PDF according to image properties.

  • When compressing PDF, please choose the proper method or else the compression effect is not good. Say when compressing image PDF, please choose compressing image method. When compressing fonts based PDF, please choose compressing fonts methods.
  • According to the question, there are jpg images with higher resolutions, so we need to choose compressing image methods. Here are several method for you to choose like JPEG2000 technology to compress color scanned PDF down to the same size as black and white TIFF Group 4 images.
  • -ci <string> : Set Color Image Compression, values: jpx, jpg, zip
    -cidown      : Downsample color images
    -cidownres <int> : Set Color Image Resolution
    -cidowntype <int>: Downsample type for color images:
        -cidowntype 0: default
        -cidowntype 1: Subsample
        -cidowntype 2: Average
        -cidowntype 3: Bicubic

    pdfcompressor.exe -jbig2 C:\in.pdf C:\out.pdf
    pdfcompressor.exe -jbig2 -jpx C:\in.pdf C:\out.pdf
    pdfcompressor.exe -jpx -jpxquality 1 C:\in.pdf C:\out.pdf
    pdfcompressor.exe -jpx -jpxquality 0.5 C:\in.pdf C:\out.pdf
    pdfcompressor.exe -jpx -jpxquality 10 C:\in.pdf C:\out.pdf
    pdfcompressor.exe -preset screen C:\in.pdf C:\out.pdf
    pdfcompressor.exe -preset ebook C:\in.pdf C:\out.pdf

    Here is a compressing data table for your reference:

    data of compressing

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

DOC to Any Converter

How to create PDF and send output PDF by email directly programmatically?

      In this article, I will show you how to create PDF and then send output PDF by email directly programmatically. The whole process could be under under computer, server or any other net website word as the software I use here is COM version, which you can call it together with any programming or scripting languages, such as Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. It is VeryDOC Doc Converter COM, by which we can also create PDF from any printable files like web pages and DOC, RTF, TXT, PPT, XLS. If you need, when finish creating, output PDF will be sent to your client by email directly. Please check more related information of this software on homepage, in the following part, let us check how to use this software.

Step 1. Download Doc Converter COM

  • This is COM software, there are pdfout.dll, install_as_service.bat, doc2pdf_service.exe and others included in this software.
  • When downloading finishes, there is a zip file. Please extract it to some folder then you can find those elements in the extracted folder.
  • Please check how to install them in Manual file.

Step 2. Create PDF and send output PDF by email directly

  • When you use this software, please refer to the usage and example of this software.
  • For creating PDF, please refer to the following code template:
  • CreatePDF()
    Create PDF file,
        For Example,
            Set PdfCreator = New PDFOUTLib.PdfCreator
            PdfCreator.HTML2PDF = "C:\sample.html"
            PdfCreator.FileName = "C:\sample.pdf"
            PdfCreator.HeadersFooters = "off"
            PdfCreator.paperType = 6 '//7 is A4 paper, 6 is A3 paper
            PdfCreator.CreatePDF
            While PdfCreator.StillRunning = 1
                DoEvents
                Call WaitMessage
            Wend
            Set PdfCreator = Nothing
            Debug.Print "C:\sample.html -->C:\sample.pdf"
    By the above code template, we can create PDF form HTML file and specify output paper size.

  • When send output PDF file to client by email, please refer to the following code template.
  • After create a PDF file and send it from your mail client,
        For Example,
            Set PdfCreator = New PDFOUTLib.PdfCreator
            PdfCreator.HTML2PDF = "C:\sample.html"
            PdfCreator.FileName = "C:\sample.pdf"
            PdfCreator.HeadersFooters = "off"
            PdfCreator.paperType = 6 '//7 is A4 paper, 6 is A3 paper
            PdfCreator.subject = "I can control the subject this way"
            PdfCreator.body = "And I can control the body too"
            PdfCreator.SendEmail
            While PdfCreator.StillRunning = 1
                DoEvents
                Call WaitMessage
            Wend
            Set PdfCreator = Nothing

There are lots of functions of this software I can not list all of them here. So please check more on the user manual. During the using, if you have any question, please contact us as soon as possible.