Portable Document Format (PDF). LEADTOOLS provides support for PDF compression with MRC segmentation. The MRC segmentation can be used to break down a page/image into smaller segments, saving each segment using 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 Creating A compressed PDF File. 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 neeed 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 | 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.Pdf.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.
Platforms: .NET 2/3, .NET 4