Version 17.5 of this C API has changed from version 17 as follows:
LEADTOOLS now supports the HTML (Hypertext Markup Language) output for LEADTOOLS Document Writer SDK (C API or .NET).
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:
Removed Member | Replacement |
---|---|
RASTERIZEDOCOPTIONS.bEnabled | None. |
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 | RASTERIZEDOCOPTIONS.uXResolution |
FILEPDFOPTIONS.nYResolution | RASTERIZEDOCOPTIONS.uYResolution |
FILEXPSOPTIONS.nXResolution | RASTERIZEDOCOPTIONS.uXResolution |
FILEXPSOPTIONS.nYResolution | RASTERIZEDOCOPTIONS.uYResolution |
FILETXTOPTIONS.dLeftMarg | RASTERIZEDOCOPTIONS.dLeftMargin |
FILETXTOPTIONS.dTopMarg | RASTERIZEDOCOPTIONS.dTopMargin |
FILETXTOPTIONS.dRightMarg | RASTERIZEDOCOPTIONS.dRightMargin |
FILETXTOPTIONS.dBottomMarg | RASTERIZEDOCOPTIONS.dBottomMargin |
FILETXTOPTIONS.dPaperWidth | RASTERIZEDOCOPTIONS.dPageWidth |
FILETXTOPTIONS.dPaperHeight | RASTERIZEDOCOPTIONS.dPageHeight |
FILERTFOPTIONS.dLeftMarg | RASTERIZEDOCOPTIONS.dLeftMargin |
FILERTFOPTIONS.dTopMarg | RASTERIZEDOCOPTIONS.dTopMargin |
FILERTFOPTIONS.dRightMarg | RASTERIZEDOCOPTIONS.dRightMargin |
FILERTFOPTIONS.dBottomMarg | RASTERIZEDOCOPTIONS.dBottomMargin |
FILERTFOPTIONS.dPaperWidth | RASTERIZEDOCOPTIONS.dPageWidth |
FILERTFOPTIONS.dPaperHeight | RASTERIZEDOCOPTIONS.dPageHeight |
FILERTFOPTIONS.nXResolution | RASTERIZEDOCOPTIONS.uXResolution |
FILERTFOPTIONS.nYResolution | 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 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
Optimized the load performance for DOC, PCL, and CGM formats.
Support for loading from memory for MS-Office formats (Doc, DocX, Xls, XlsX, Ppt and PptX)
Support for transparent images, bullets, and rotated images for Ppt and PptX
Support for Right-to-Left rendering, paragraph borders, and table cell shading for Doc, DocX
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.
Support for DXF and DWG loading with different units and viewing multi-degree splines.
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).
L_UnlockSupport has been removed and replaced with L_SetLicenseFile and L_SetLicenseBuffer .
L_SetDJVOptions
L_GetDJVOptions
L_GetBitmapHistogram: The type of pHisto parameter has been changed from L_UINT32 to L_UINT64.
L_AutoZoneBitmap 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.
PAINTCALLBACKDATA pFillRect member added.
PRNJOBDATA
L_GetBitmapColorType - used to obtain the type of the image and if it is black and white, colored or grayscale, along with the confidence level.
L_SetLicenseFile - used to set a runtime license for LEADTOOLS.
L_SetLicenseBuffer - used to set a runtime license for LEADTOOLS.
L_PrnClntSetPrinterConnectionDll
L_PrnIsNetworkPrintingEnabled
L_PrnClntPrintJob
L_PrnClntShutdown
L_PrnClntStartup
L_PrnGetNetworkInitialData
L_PrnGetRemoteData
L_PrnSetEnableNetworkPrinting
L_PrnSetNetworkInitialData
L_PrnGetEmbeddedFonts
L_PrnSetPrinterSpecifications
L_PrnGetPrinterSpecifications
L_PrnSetUserDefaultPrinterSpecifications
L_PrnGetUserDefaultPrinterSpecifications
For more information, refer to:
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document