ImageGear for .NET
LoadDocument(Stream,Int32,Int32) Method
See Also  Send Feedback
ImageGear21.Core Assembly > ImageGear.Formats Namespace > ImGearFileFormats Class > LoadDocument Method : LoadDocument(Stream,Int32,Int32) Method




stream
The data stream containing an image.
startPageNumber
The number of the first page to load.
count
Total number of pages to load.

Glossary Item Box

Loads a range of pages from an image.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

stream
The data stream containing an image.
startPageNumber
The number of the first page to load.
count
Total number of pages to load.

Return Value

A new instance of ImageGear.Core.ImGearDocument class.

Remarks

This method allows you to load several pages in a single call and get access to the document level metadata of an image. It is recommended to use this method when working with PDF format since pages inside a PDF file depend on each other, and thus, loading them at once (as a document) is preferable to loading pages individually. If the format of an image cannot be detected, an exception is thrown.

See Also

©2013. Accusoft Corporation. All Rights Reserved.