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.

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!