VeryPDF Cloud API Platform :: PDF Compressor Cloud API :: Compress image, font, graphics etc. objects in PDF file

VeryPDF PDF Compressor Cloud API is a part of VeryPDF Cloud API Platform, VeryPDF PDF Compressor Cloud API is provide Cloud API functions to reduce the size of large PDF documents without the need of installing special software. You can call PDF Compressor Cloud API to make the PDF file as smaller, allowing your users to download and access it much faster.

VeryPDF Cloud API Platform Home Page:

http://www.verypdf.com/online/cloud-api/index.html

The APP name is: pdfcompressor

You can execute following URL to compress a PDF file easily, PDF Compressor Cloud API will use default options to compress the PDF file,

http://online.verypdf.com/api/index.php?apikey=XXXXXXXXXXXXX
&app=pdfcompressor&outfile=out.pdf
&infile=http://online.verypdf.com/examples/cloud-api/verypdf_web_raster.pdf

灯泡 The list of supported options:

pdfa: Enable PDF/A to output PDF file.

EmbedAllFonts: Embed all used fonts into PDF file.

SubsetFonts: Subset fonts in PDF file.

CompressFonts: Compress fonts in PDF file.

ColorImageFilter: Compress color image with special arithmetic, it is support: jpg, jpx, zip methods, default is jpg.

GrayImageFilter: Compress grayscale image with special arithmetic, it is support: jpg, jpx, zip methods, default is jpg.

MonoImageFilter: Compress monochrome image with special arithmetic, it is support: jbig2, jbig2l, fax, zip, rle methods, default is jpg.

ColorImageRes: Set the resolution when Downsample Color Images, default is 72dpi.

GrayImageRes: Set the resolution when Downsample Grayscale Images, default is 72dpi.

MonoImageRes: Set the resolution when Downsample Monochrome Images, default is 72dpi.

ColorImageDownsampleType: Samples or downsamples color images to reduce the number of pixels, deleting information. By altering the settings, you can minimize the loss of detail with maximum benefit to the file size.

The sample setting. Available options are:

0= No Downsampling. No downsampling occurs.

1= Subsample. Subsampling chooses a pixel in the center of a sample group and replaces the entire group with that pixel at the specified resolution.

2= Average. Downsampling averages the pixel color in a sample group and replaces the entire group with an average of the pixel color at the specified resolution.

3= Bicubic. Downsampling occurs using a weighted average of the pixel color in a sample group and replaces the entire group with an average of the pixel color at the specified resolution. Bicubic downsampling is more precise, resulting in smoother gradations than Average and Subsample downsampling, yet is also the slowest process.

Subsampling is the fastest sampling process, but can result in a less smooth and continuous image.

GrayImageDownsampleType: Same as ColorImageDownsampleType, but available for grayscale images.

MonoImageDownsampleType: Same as ColorImageDownsampleType, but available for monochrome images.

PDFPassword: Set the open password of input PDF file.

OwnerPassword: Option to encrypt output PDF file, set owner password to output PDF file.

UserPassword: Option to encrypt output PDF file, set user password to output PDF file.

Permissions: Option to encrypt output PDF file, set user permissions to output PDF file.

KeyLength: Option to encrypt output PDF file, set owner password to output PDF file.

The following URL will resize all image objects to 50DPI in PDF file,

http://online.verypdf.com/api/index.php?apikey=XXXXXXXXXXXXX
&app=pdfcompressor&outfile=out.pdf
&infile=http://online.verypdf.com/examples/cloud-api/verypdf_web_raster.pdf
&ColorImageRes=50&GrayImageRes=50&MonoImageRes=50

The following URL will resize all image objects to 20DPI in PDF file,

http://online.verypdf.com/api/index.php?apikey=XXXXXXXXXXXXX
&app=pdfcompressor&outfile=out.pdf
&infile=http://online.verypdf.com/examples/cloud-api/verypdf_web_raster.pdf
&ColorImageRes=20&GrayImageRes=20&MonoImageRes=20

Downsample all images to 20DPI and subset and compress fonts in PDF file,

http://online.verypdf.com/api/index.php?apikey=XXXXXXXXXXXXX
&app=pdfcompressor&outfile=out.pdf
&infile=http://online.verypdf.com/examples/cloud-api/verypdf_web_raster.pdf
&ColorImageRes=20&GrayImageRes=20&MonoImageRes=20&SubsetFonts&CompressFonts

Resize all image objects to 20dpi with Bicubic arithmetic, compress and subset all fonts in PDF file,

http://online.verypdf.com/api/index.php?apikey=XXXXXXXXXXXXX
&app=pdfcompressor&outfile=out.pdf
&infile=http://online.verypdf.com/examples/cloud-api/verypdf_web_raster.pdf
&ColorImageRes=20&GrayImageRes=20&MonoImageRes=20
&SubsetFonts&CompressFonts&ColorImageDownsampleType=3

You will get following result, you can then download the compressed PDF file easily,

===========================================
Original PDF file size = 7.30MB (7295.15KB, 7295150 Bytes)
Compressed PDF file size = 0.56MB (556.45KB, 556447 Bytes)
Compression Ratio = 92.37%
===========================================
http://online.verypdf.com/u/public/api/20130812-090155-1894611736-out.pdf

More articles for VeryPDF Cloud API Platform,

http://www.verypdf.com/wordpress/category/verypdf-cloud-api

If you need any other functions which are not included in VeryPDF Cloud API Platform, please feel free to let us know,

http://support.verypdf.com

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

This entry was posted in VeryPDF Cloud API and tagged , , . Bookmark the permalink.

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!