Multipage File Formats

LEADTOOLS supports the following file formats which support multipage files:

To load all pages of a multipage file, use one of the Load methods that have the firstPage and lastPage parameters, setting firstPage to 1 and lastPage to -1.

Some multipage files can be loaded more quickly by one of two mechanisms, as follows:

  1. TIFF files can use the IFD to load a file more quickly. Use the RasterCodecs.GetInformation method to use an IFD by setting the RasterCodecs.Options.Tiff.Load.ImageFileDirectoryOffset value to the IFD and indicate within this class object that the IFD information is valid. Caution should be taken in using the IFD, since incorrect values can result in unexpected consequences. Also note that the page numbering is different if the IFD is used: page 1 is the page whose IFD is indicated in the CodecsLoadOptions class object, page 2 is the page after the page whose IFD is indicated, etc.
  2. Some other multipage file formats (including DICOM, PDF, Jp2, among others), can use the OptimizedLoad functions. To use this mechanism, perform something like the following steps:

    1. Call the StartOptimizedLoad function.
    2. Create a loop from the same source file.
    3. In the loop, call one of the codecs.Load functions, passing the name of the source file.
    4. Perform any processing on the section that was loaded.
    5. When finished, call the StopOptimizedLoad function.
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.