ImageGearJava Project > com.accusoft.imagegear.formats Package > ImGearFileFormats Class > loadDocument Method : loadDocument(ImGearStream,int,int) Method |
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.
public static ImGearDocument loadDocument( ImGearStream stream, int startPageNumber, int count ) |