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.
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 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:
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 .
Platforms: .NET 4, .NET Standard
Medical Web Viewer .NET