File Formats: LEADTOOLS PDF with Mixed Raster Content (PDF)

LEADTOOLS provides support for PDF compression with MRC segmentation. MRC segmentation can be used to break a page/image into smaller segments, saving each segment using the compression appropriate for that segment. Thus, one page of a PDF file may have an image JPEG-compressed, some text JBIG2-compressed, and another area CCITT-compressed. This whole process works to provide a PDF file with better compression and better quality than just a standard raster PDF file.

The default extension used by this format is: PDF.

LEADTOOLS supports Load and save for this format.

Keys that must be unlocked to enable this format support: Document and PdfAdvanced.

Multi-page is supported if the PDF file is created by using the PdfCompressor. For more information, refer to PdfCompressor.Insert(RasterImage,PdfCompressorOptions) and tutorials. As an example, you can create a multipage file as shown in the following code:

PdfCompressor pdfCompressor = new PdfCompressor();  
pdfCompressor.SetCompression //set the compressions you need 
              
pdfCompressor.Insert //insert 1st page 
pdfCompressor.Insert //insert 2nd page 

              
pdfCompressor.Insert // and so on 
…. 
pdfCompressor.Write // write the pdf documentpdfCompressor.InsertPdfCompressor pdfCompressor = new  
PdfCompressor(); PdfCompressor pdfCompressor = new PdfCompressor(); 

Use the Insert command for each page being added.

File constants associated with this file format are:

Constant Read Support Write Support Description
RasPdf 1, 4, 8, and 24 BPP N/A (see note below) PDF Format with LEAD Mixed Raster Content.
PdfLeadMrc 1, 4, 8, and 24 BPP N/A (see note below) PDF Format with LEAD Mixed Raster Content.

NOTE: PdfLeadMrc is made up of different segments, which can be of various BitsPerPixel. When you request file information on a PDF file, it will be reported as 24-bit. When you save PdfLeadMrc files, various segments will be saved with different BitsPerPixel, based on the content.

Required DLL: Leadtools.Mrc.dll, Leadtools.PdfCompressor.dll For a listing of the exact DLLs needed, based on the toolkit version, refer to Files To Be Included With Your Application .

Related Formats: MRC Format, TIFF - Tagged Image File Format.

Platform Support

Extension Module Value Win32 Win64 Net32 Net64 Linux Android Apple UWP MimeType Friendly Name
PdfLeadMrc SGM 317 image/mrc PDF Format with image segmentation using LEAD MRC
RasPdf PDF 146 application/pdf PDF - Adobe Portable Document Format with no compression

For a complete list for supported file formats, see Summary of All Supported File Formats.

For details of the file formats supported across products and platforms, refer to File Format Comparison Chart.

Help Version 21.0.2021.11.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Imaging, Medical, and Document
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.