/  Home  PDF-Tools  Document  Support

 VeryPDF JBIG2 Compression Engine

Overview

JBIG2 is an image compression standard for bi-level (black & white) images. Designed for use in both Internet and desktop imaging applications, JBIG2 offers certain advantages over the traditional bi-tonal compression schemes. One such advantage is that it can be used for both lossless as well as lossy compression of scanned images.

In its lossless mode JBIG2 can generate image files that are from 3 to 5 times smaller than the corresponding Group 4 Tiff images. The lossy mode of JBIG2 can compress to much higher levels without significant loss of image quality. Furthermore, by compressing across pages in a multi-page TIFF file, size reductions of 10-fold or more are achievable.

JBIG2 compression was incorporated into PDF specification starting from Acrobat 5. Most JBIG2 compressed images are embedded inside PDF files for easier viewing by the free Acrobat reader.

JBIG2 Encoder

The JBIG2 specification (available here as a 1.12MB PDF file) has been published in 2000 as the international standard ITU T.88, and in 2001 as ISO/IEC 14492. The specification only deals with decoding JBIG2 images. Many aspects of the encoding were left open as implementation choices. Also, unlike the traditional codecs, such as TIFF or JPEG, there are several coding schemes and templates available to deal with a variety of pixel patterns.

The use of symbol dictionaries and symbol matching in JBIG2 enables very effective encoding of documents that contain recurring symbols, making JBIG2 ideal for compressing scanned documents. The compression process starts by segmenting a page into symbol classes and building symbol dictionaries through pattern matching and similarity analysis. The symbol dictionaries are stored in the document together with a content stream which encodes positional information for instances of a symbol. In lossy compressions, minor differences among symbols in a similarity class are thrown away. In lossless encoding, the minor differences are encoded as refinements.

The quality of the compressed JBIG2 image and the level of compression is largely determined by the choice of algorithms and heuristics that goes into the symbol classification and pattern matching. Every implementation of JBIG2 encoder will produce a different compressed file from the same input.

The use of JBIG2 compression was made popular by the inclusion of JBIG2 filters in Acrobat 5. Unfortunately, the Acrobat decoder cannot handle the full range of compression options envisioned in the JBIG2 specification.

VeryPDF JBIG2 encoder was written in portable C++ language and produces JBIG2 streams that are compatible with Adobe Acrobat. Certain advanced features (such as non-standard adaptive templates for arithmetic encoding) are not used in favor of maintaining this compatibility.

JBIG2 Encoder Features:
  Cross-platform object oriented C++ code
  Creates both multi-page JBIG2 (*.jb2) and linearized PDF files
  Compresses across pages in a multi-page document
  Compresses in both lossless and lossy modes
  Encodes from any file or stream

JBIG2 Decoder

VeryPDF JBIG2 Decoder is a full implementation of the JBIG2 specification as published by the standards committee. The decoder was also written in portable C++ and is callable from a number of programming languages.

For most applications, JBIG2 compressed images are embedded inside PDF documents and are decoded by the Acrobat viewer. VeryPDF JBIG2 decoder is integrated with VeryPDF PDF Library and can extract and decode JBIG2 image streams from PDF files. It is also possible to convert these streams to other formats, such as Fax Group 4. A potential application of the decoder is in the conversion of existing PDF files into PDF/A: the standardized subset of PDF specification suitable for long term archiving.

JBIG2 Decoder Features:
  Cross-platform object oriented C++ code
  Can decode JBIG2 (*.jb2) files and PDF streams
  Can generate both sequential and random JBIG2 files
  Arithmetic, Huffman and MMR decoders
  Can decode Generic, Text and Halftone regions
  Supports standard and user defined Huffman tables
  Supports standard and user defined adaptive templates
  Supports symbol refinement

Business Benefits

JBIG2 compression standard can enable many businesses to streamline their document centric operations. From reduced storage requirements to fast and secure serving of documents on the Internet, JBIG2 can provide immediate improvements in document related processes and lead to significant ROI in the short term.
 
  • Reduced Storage Costs

    JBIG2 compressed documents are typically 10 times smaller than the corresponding multi-page TIFF G4 image files. Batch conversion of existing TIFF files to JBIG2 compressed documents can restore about 90% of used storage. In addition to saving on storage costs, smaller files are also easier and faster to distribute, backup or archive.
     

  • Faster Downloads

    Smaller files are faster to download. A JBIG2 compressed document can be downloaded about 10 times faster than the corresponding TIFF file. Also, if a JBIG2 file is embedded inside a inearized PDF document, then the document will be further optimized for on-line viewing. The Acrobat viewer can open such documents in streaming mode, downloading only the parts that are required to view each page. For linearized PDF documents, the time to view each page becomes independent of the number of pages in the document.
     

  • Publishing & Distribution

    Businesses that are document centric, such as legal or insurance companies, deal with large number of electronic files. Many of these documents are scanned into multi-page TIFF files. A typical TIFF file of a few hundred pages is several mega-bytes large. These large files are inherently insecure and difficult to distribute through publishing on the Web or via e-mail. Many e-mail accounts have limitations on attachment sizes and will bounce back e-mails that exceed their limits. Also, there is no universal platform agnostic viewer for TIFF images. JBIG2 technology provides a mechanism for overcoming these problems. It converts the TIFF file into a standard compressed, secured and web-optimized PDF document suitable for publication and distribution.

    Downloads

    Evaluation copies of pre-built applications and a Software Development Kit are available upon request. Please send an e-mail to support@verypdf.com.

    FAQ:
    Q: I was looking at the web page at /pdfinfoeditor/jbig2-pdf.htm but could not tell what I needed to buy to get the JBIG2 engine. Could you please point me in the right direction?
    A: Thanks for your message, you can download "PDF Compressor Command Line" or "PDF Compressor SDK" from following web page to try, we have already integrated JBIG2 compression engine into the "PDF Compressor Command Line" and "PDF Compressor SDK" products now,

    http://www.verydoc.com/pdfcompressor.html
    http://www.verydoc.com/url/pdfcompressor.zip
    http://www.verydoc.com/dl2.php/pdfcompressor_sdk.zip

    After you download it, you can run following command line to compress a normal scanned PDF file with JBIG2 compression,

    pdfcompressor.exe -jbig2 C:\in.pdf C:\out.pdf

    The jbig2 compressed PDF file will be smaller than original PDF file. The jbig2 compressed PDF file is contain following information,

    12 0 obj
    <<
    /Type /XObject
    /Subtype /Image
    /BitsPerComponent 1
    /ColorSpace /DeviceGray
    /Width 2550
    /Height 3472
    /Filter /JBIG2Decode
    /Length 54343
    >>
    stream
    ......
    ......
    endstream
    endobj

    See also:
    PDF Compressor Command Line and PDF Compressor SDK
    How to Optimize PDF Files for Web Sites?
    How to Compress your PDF files?
    PDF Tools Command Line options
    PDF Compression Command Line options
    JPEG2000 compression in Advanced PDF Tools
    Modify Custom Properties in Advanced PDF Tools
    Scale your PDF pages with PDF Tools and docPrint
    VeryPDF JBIG2 Compression Engine
    Understanding "Flavors" of PDF
    What is PDF/A? What is PDF/X?

    Comparison between JPEG and JPEG 2000

  • Advanced PDF Tools Command Line Home page.


    PDF DOCUMENT SUMMARY :: PDF SUMMARY MAKER :: PDF PAGE NUMBERER :: PDF INFO CHANGER :: PDF SHRINK :: PDF INFORMATION MANAGER  :: PDF INFORMATION EDITOR :: JPEG2000 :: PDF COMPRESS :: PDF OPTIMIZER :: PDF REDUCER :: PDF LINEARIZATION :: PDF METADATA :: PDF COMPRESSOR :: PDF PAGE COUNTER

    VeryPDF.com | VeryDOC.com | VeryPCL.com | Links | Contact

    Copyright © 2000-2007 by VeryPDF.com, Inc.
    Send comments about this site to the webmaster.