Version 17.5 of this C++ Class Library has changed from version 17 as follows:
In LEADTOOLS 17.5, the RASTERIZEDOCOPTIONS structure is used exclusively to determine and calculate the page size, resolution and margins (rasterization) when loading document file formats that do not have physical size as a raster image. These file formats are listed in the table below:
|LEADTOOLS Format Identifier||Description|
|FILE_RAS_PDF||Portable Document Format (PDF)|
|FILE_POSTSCRIPT||Postscript Document Format|
|FILE_EPS and FILE_EPSPOSTSCRIPT||Encapsulated PostScript|
|FILE_XPS||XML Paper Specification|
|FILE_TXT||ASCII Text Files|
|FILE_RTF_RASTER||Rich Text Format|
|FILE_DOC||Microsoft Word 97-2013 Document Format|
|FILE_DOCX||Microsoft Word Document Format|
|FILE_XLS||Microsoft Excel 97-2003 Spreadsheet Format|
|FILE_XLSX||Microsoft Excel Spreadsheet Format|
|FILE_PPT||Microsoft PowerPoint 97-2003 Presentation Format|
|FILE_PPTX||Microsoft PowerPoint Presentation Format|
In previous versions of LEADTOOLS, the options to control the rasterization process have been consolidated into the RASTERIZEDOCOPTIONS structure and old structure members were deprecated. In 17.5, these deprecated members are removed from the toolkit. The following table lists the removed members and their replacements:
|This has been removed and RASTERIZEDOCOPTIONS is always used when rasterizing document files (the equivalent RASTERIZEDOCOPTIONS.Enabled = true in previous versions of LEADTOOLS)|
|FILEPDFOPTIONS.nXResolution and FILEPDFOPTIONS.nYResolution||RASTERIZEDOCOPTIONS.uXResolution and RASTERIZEDOCOPTIONS.uYResolution|
|FILEXPSOPTIONS.nXResolution and FILEXPSOPTIONS.nYResolution||RASTERIZEDOCOPTIONS.uXResolution and RASTERIZEDOCOPTIONS.uYResolution|
|FILETXTOPTIONS.dLeftMarg, FILETXTOPTIONS.dTopMarg, FILETXTOPTIONS.dRightMarg, FILETXTOPTIONS.dBottomMarg, FILETXTOPTIONS.dPaperWidth and FILETXTOPTIONS.dPaperHeight||RASTERIZEDOCOPTIONS.dLeftMargin, RASTERIZEDOCOPTIONS.dTopMargin, RASTERIZEDOCOPTIONS.dRightMargin, RASTERIZEDOCOPTIONS.dBottomMargin, RASTERIZEDOCOPTIONS.dPageWidth and RASTERIZEDOCOPTIONS.dPageHeight|
|FILERTFOPTIONS.dLeftMarg, FILERTFOPTIONS.dTopMarg, FILERTFOPTIONS.dRightMarg, FILERTFOPTIONS.dBottomMarg, FILERTFOPTIONS.dPaperWidth, FILERTFOPTIONS.dPaperHeight FILERTFOPTIONS.nXResolution and FILERTFOPTIONS.nYResolution||RASTERIZEDOCOPTIONS.dLeftMargin, RASTERIZEDOCOPTIONS.dTopMargin, RASTERIZEDOCOPTIONS.dRightMargin, RASTERIZEDOCOPTIONS.dBottomMargin, RASTERIZEDOCOPTIONS.dPageWidth, RASTERIZEDOCOPTIONS.dPageHeight, RASTERIZEDOCOPTIONS.uXResolution and RASTERIZEDOCOPTIONS.uYResolution|
As well as the changes listed above, note that the following members contain updated default values:
|Member||Old Value||New Value||Notes|
|RASTERIZEDOCOPTIONS.uXResolution and RASTERIZEDOCOPTIONS.uYResolution||0, 0||150, 150||In previous versions of LEADTOOLS, a value of 0 was used for these members to instruct the toolkit to load the documents using the current screen resolution. This proved to be not an optimal solution since the result document will almost always be loaded using a small resolution (such as 96 DPI) that is unsuitable for detailed viewing or OCRing.|
|The new default of 150 by 150 DPI results in documents loaded at a higher detailed resolution.|
|FILEPDFOPTIONS.nDisplayDepth||24||0||In previous versions of LEADTOOLS, PDF documents were rasterized at 24 BPP by default regardless of the number of colors in the original document. The new default value of 0 instructs LEADTOOLS to auto-detect the best bits/pixel value to use when loading a PDF file, hence, a black/white PDF file will be loaded at 1BPP by default resulting in a much less memory being used.|
Support for loading and saving JPEG-XR format
Support for loading and saving JPEG-LS format
Support for loading PCL6 format
Support for loading VFF format
Support for loading JPM format
Support for loading DOCX format (Microsoft Word Document Format)
Support for loading XLSX format (Microsoft Excel Spreadsheet Format)
Support for loading PPTX format (Microsoft PowerPoint Presentation Format)
Support for loading OS/2 BMP 16-bit files
Support for loading PNG 1+1 BPP
Support for loading EPUB
Support for loading MOBI
Support for loading HTM
Support for loading and saving INGR
Support for loading and saving DWFX
Support for loading and saving PNG 48 and 64 BPP
JBIG2 support additions:
Support for loading files with refinement segments.
Support for loading files with non-sequential headers (i.e. random access).
Support for saving large files (larger than 1.5 GB).
Updated CGM filter and updated VDC support (enhanced viewing)
Support for PCT loading QuickTime compressed data.
Support for DWF loading with different units.
DXF layout support, adding support for loading different paper spaces from DXF file
Support for Geometric text for DXF
Support for new Digital Camera formats - DCF.
CR2 - Cannon Format
NEF and NRW - Nikon Formats
DNG - Adobe Format
ORF - Olympus Format
ARW, SR2 and SRF - Sony Formats
RAW and RW2 - Panasonic Formats
RAF - Fujifilm Format
Support for ARGB4 in the Color Conversion SDK.
Improved the speed of the Line Remove image processing function.
PDF improvements and additions:
Added multi-thread support for PDF load
Added support for writing PDF 1.3, 1.6, and 1.7.
Simplified the PDF runtime distribution by creating a single PDF runtime DLL.
Added PDF Document Info Extractor (extracts information about PDF total page number, version, page width, page height, document information, fonts used). Works with any PDF file.
Added PDF Image Info Extractor (extracts information about PDF version, image width, height, BPP, compression and DPI). Works for LEAD Plugin files and may work for others.
Added support for extracting pages from any PDF file.
Added support for writing/extracting (loading) bookmarks to/from any PDF file.
Added support for reading/writing PDF Annotations.
Enhanced PDF page extraction for PDF TOOLS SDK (avoids producing broken files when PDF files have internal links).
LBitmap::GetHistogram: The type of pHisto parameter has been changed from L_UINT32 to L_UINT64.
LBitmap::AutoZone A flag has been added to uFlags (AUTOZONE_TEXT_DETECTION) that causes the function to modify the original bitmap so that all it contains is text. For this reason, if you set the flag be sure to make a copy of the original bitmap if you want to keep it.
RASTERIZEDOCOPTIONS bEnabled member was removed, see Changes to options for rasterizing document format below.
FILEPDFOPTIONS nXResolution and nYResolution members were removed, see Changes to options for rasterizing document format below.
FILEXPSOPTIONS nXResolution and nYResolution members were removed, see Changes to options for rasterizing document format below.
FILETXTOPTIONS dLeftMarg, dTopMarg, dRightMarg, dBottomMarg, dPaperWidth and dPaperHeight members were removed, see Changes to options for rasterizing document format below.
FILERTFOPTIONS dLeftMarg, dTopMarg, dRightMarg, dBottomMarg, dPaperWidth, dPaperHeight, nXResolution and nYResolution members were removed, see Changes to options for rasterizing document format below.
STATISTICSINFO: The types of uPixelCnt and uTotalPixelCnt members have been changed from L_UINT to L_UINT64.
LSettings::SetLicenseFile - used to set a runtime license for LEADTOOLS.
LSettings::SetLicenseBuffer - used to set a runtime license for LEADTOOLS.
LAnimationWindow::PlayProcessing (hWnd, bLoop)
For more information, refer to:
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries