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.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
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.

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

How to convert HTML with JavaScript or Java Applet code to PDF?

      In this article, I will show you how to convert HTML to PDF. When converting normal HTML file to PDF, we can find lots of tools available in market but when converting HTML file which contains Javascript or Java Applet or iFrame or SVG or Flash codes, things will go different.  Based on this need, VeryDOC developed software named VeryDOC Doc Converter COM, which can solve this matter easily. And by this software toolkit, you can also convert files of Microsoft Word, PowerPoint, Excel, JPG, PNG, GIF, HTML and others to PDF by script together with other application like VB, VC, C# etc. Please check more related information of this software on homepage, in the following part, let us check how this software works.

Step 1. Free trial Doc Converter COM

  • All the VeryDOC software are free to be downloaded and then have free trial including the COM version software. When downloading finishes, there will be an zip file. Please extract it to some folder then you can check related elements.
  • When converting HTML to PDF, please make sure you have the following application installed:
    Windows Internet Explorer 5.0 or newer and PDFcamp V1.8 or newer, or PDFcamp Pro V1.8 or newer
  • Please install DocConverter COM product by 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.
    1.5. You can run "doc2pdf_html" or "doc2pdf_vb" or "doc2pdf_exe" projects to test its capability from HTML file and VB project.

Step 2. Convert HTML with Javascript or Java Applet to PDF

  • When converting HTML file which contains Javascript or Java Applet or iFrame or SVG or Flash codes to PDF file, please refer to the following example.
    "html2pdf.exe" "C:/javascript_test.htm" "C:/output.pdf" "EnableSupportApplet=yes,DelayTimeForPrintApplet=10000"
    As the conversion from HTML with complicated structure to PDF may take a little long times, we specify the conversion time as 10000 millisecond. And when input the code templates, please enable function of supporting Applet, then conversion could be done very nice.
  • It is known to all that Java applet is a small application written in Java, and delivered to users in the form of bytecode. The user launches the Java applet from a web page. The Java applet then executes within a Java Virtual Machine (JVM) in a process separate from the web browser itself, yet it can appear in a frame of the web page, in a new application window, or in Sun's AppletViewer, a stand-alone tool for testing applets. We have added this technology to our software. So this function could be fulfilled without any problem.

By this simply code template, you can convert HTML with  Javascript or Java Applet or iFrame or SVG or Flash code to PDF easily. 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)
pdf to vector converter

How to convert PDF to XPS and specify conversion page range from C#?

    In this article, I will show you how to convert PDF to XPS and specify conversion page range from C# code template. The software I use is named as VeryDOC PDF to Vector Converter, which is a professional tool for converting PDF files to vector image no matter in batch or singly. As command line software, you can call it together with any programming languages such as Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc.  If you need to use DLL Library for further developing, there is also COM version available for you. Please check more detail information of this software on homepage, in the following part, let us check how to use this software.

Step 1. Free trial PDF to Vector Converter Command Line

  • Here I will take the command line version for example. If you need to use the  COM developer version, please download from corresponding downloading link.
  • When downloading finishes, there will be a zip file. Please extract it to some folder then you can check help document, executable file and other files.

Step 2. Convert PDF to XPS and specify conversion page range from C#.

  • When you use this software, please refer to the usage and examples.
  • Here is the usage for your reference:pdf2vec.exe [options] [Options] <PDF Files>
  • By this software, you can not only specify conversion page range, but also specify other limitations. Please check related functions from the following parameters.
  • -firstpage <int> : first page to print, from 1 to max page
    -lastpage <int>  : last page to print, from 1 to max page
    -scale <int>        : specify the factor by which the printed output is to be scaled, The apparent page size is scaled from the physical page size by a factor of scale/100. This option is available for PCL, HPGL, XPS, PS and EPS formats.

  • Now let us check how to call this software from C# for converting PDF to XPS.
  • Make use of the PROCESS class available in SYSTEM.DIOGNOSTICS namaspace, use the following piece of code to execute the pdf2vec.exe file,
    ~~~~~~~~~~~~~~~~~
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Diagnostics;

    namespace ConsoleApplication1
    {
        class Program
    {
    static void Main(string[] args)
    {
    Process proc = new Process();
    proc.StartInfo.FileName = @"C:\\pdf2vec.exe";
    string strArguments = "";
    strArguments += "—firstpage 1 –lastpage 2";
    strArguments += " D:\\temp\\sample.pdf D:\\temp\\out.xps";
    Console.WriteLine(strArguments);
    proc.StartInfo.Arguments = @strArguments;
    proc.Start();
    proc.WaitForExit();
    }
    }
    }
    ~~~~~~~~~~~~~~~~~

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)
doc to any converter

How to convert HTML to PDF using letter paper format in portrait mode?

In this article, I will show you how to convert online website HTML file to PDF using letter paper format in portrait mode. The software I use is named as VeryDOC Doc Converter COM, by which you can convert files of Microsoft Word, PowerPoint, Excel, JPG, PNG, GIF, HTML and others to PDF by script together with other application like VB, VC, C# etc. 

When you use this software, please make sure you have the following software installed:PDFcamp Pro V1.8 or newer, Windows Internet Explorer 5.0 or newer. When you need to convert Office file to PDF or image, please make sure you have Microsoft Office 97 or newer installed.  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 Doc Converter COM

  • This is software component, by this software you can call the conversion from HTML to PDF together with 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).
  • For uploading easily, we have compressed it to zip file. When downloading finishes, please extract it to some folder then you can find help documents and related documents.

Step 2. Convert HTML file to PDF using letter paper format in portrait mode.

  • When using this software to convert HTML to PDF using letter paper format in portrait mode.
  • Use Letter paper in portrait mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "papertype=0"

    Please check more examples in the following part.

    Use Letter paper in landscape mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=792,pageHeight=612"
    Use A4 paper in portrait mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "papertype=7"
    Use A4 paper in landscape mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=842,pageHeight=595"
    Use A3 paper in portrait mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "papertype=6"
    Use A3 paper in landscape mode,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=1190,pageHeight=842"
    Use A1 paper,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=1684,pageHeight=2384"
    Use A2 paper,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=1191,pageHeight=1684"
    Use A3 paper,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=842,pageHeight=1191"
    Use A4 paper,
    html2pdf.exe "http://www.google.com" "C:\google.pdf" "paperType=9,pageWidth=595,pageHeight=842"
    You can select more paper types for "papertype" value,
    ~~~~~~~~~~~~~~~~~
            Set page type, the value is from 0 to 9,
            0         "Letter [8.5 x 11 in]",
            1         "Legal [8.5 x 14 in]",
            2         "Executive [7.25 x 10.5 in]",
            3         "Ledger [355.6 x 215.9 mm]",
            4         "Tabloid [11 x 17 in]",
            5         "Screen [10 x 7.5 in]",
            6         "A3 [297 x 420 mm]",
            7         "A4 [210 x 297 mm]",
            8         "A5 [148 x 210 mm]",
    ~~~~~~~~~~~~~~~~~

If you need to know more functions and examples of this software, please read 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)