Developer Tools
|
Office Productivity Applications
|
Enterprise Solutions
|
|||||||||||||||||||||||







Last month, we saw how PDFOne .NET optimized PDF document size on its own. This month, we will see how you can further optimize PDF file size by using some advanced functions provided by PDFOne .NET.
If your PDF files contain a lot of monochrome images, say scanned copies of paper documents, then you could store the images in CCITT3 format rather than in BMP or JPEG.
CCITT3 image compression format is optimized for monochrome images. File size of PDF documents with CCITT3 images are a lot less than that of documents with BMP or JPEG images.
To illustrate this, I used a black and white (B&W) image test.jpg (shown below) and created two PDF documents.

The first document was created without any specified compression for the B&W image. (The image was already compressed JPEG.) For the second document, CCITT3 compression was explicitly specified.
Dim doc1 As New PDFDocument doc1.DrawImage("c:\test.jpg", 1, 1) doc1.OpenAfterCreate = True doc1.Save("c:\jpeg_image_compression_doc.pdf") doc1.Close() Dim doc2 As New PDFDocument doc2.DrawImage("c:\test.jpg", 1, 1, _ PDFImageCompressionFormat.CCITT3) doc2.OpenAfterCreate = True doc2.Save("c:\ccitt3_image_compression_doc.pdf") doc2.Close()
The image test.jpg was 29 KB and so the first document was 31 KB. With CCITT3 compression, the PDF file became 7 KB - nearly 75% reduction in file size!
Downloads:
---o0O0o---
| Our Developer Tools | |
|---|---|
eDocEngine VCLA Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools. |
PDFtoolkit VCLA Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents. |
XtremePDFConverter VCLA Delphi/C++Builder component to intelligently convert PDF to user-friendly Word RTF documents. |
|
PDFOne .NETA .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications. |
XtremeDocumentStudio .NETMulti-format document-processing component suite for .NET developers |
PDFOne (for Java™)A Java™ PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java™ applications. |
XtremeFontEngine (for Java)Java font engine to render glyphs from Type 1, Type 2 (CFF), and TrueType fonts |
| Our Office Productivity Applications |
|---|
Free PDF ReaderA free, fast, and portable application for viewing, printing and converting PDF documents. |
| Privacy | Legal | Feedback | Newsletter | Resellers | © 2002-2013 Gnostice Information Technologies Private Limited. All rights reserved. |
This site is best viewed on a screen with minimum resolution of 1152 x 864 pixels. Windows XP users are advised to use Microsoft ClearType Tuning for optimal experience. Also, please use the latest version of a standards-compliant browser such as Firefox, Opera, or Dragon (Chromium).