Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

Show in webframe

MayHaveDifferentPageSizes Property






Hint to the loader that the document may contain pages with different size.
Syntax
public bool MayHaveDifferentPageSizes {get; set;}
'Declaration
 
Public Property MayHaveDifferentPageSizes As Boolean
'Usage
 
Dim instance As LoadDocumentOptions
Dim value As Boolean
 
instance.MayHaveDifferentPageSizes = value
 
value = instance.MayHaveDifferentPageSizes
public boolean getMayHaveDifferentPageSizes()
public void setMayHaveDifferentPageSizes(boolean value)
            
public:
property bool MayHaveDifferentPageSizes {
   bool get();
   void set (    bool value);
}

Property Value

true if the document may contain pages with different size, otherwise; false. Default value is false.
Remarks

The document factory tries to create a value Document object and return it to the user as quickly as possible. During the load operation, the Document.Pages collection is initialized with each member containing a DocumentPage instance that must be initialized with the page size and resolution. By default, the factory will parse the first page in the document, obtain the size and resolution and then re-use the same value for all pages. This done to speed up the loading process and return control to the user as soon as possible.

Some document formats such as TIF, Microsoft Office formats and PDF support having pages with different sizes. Although rare, the above approach may result in creating pages with a wrong size (equal to the size of the first page). Having pages with the wrong size will not effect generating the images or SVG data for page however it may be required in other scenarios such as when parsing text or using annotations. If you have documents that contain different page sizes then it is recommended to set the value of MayHaveDifferentPageSizes to true. The factory will then get the size and resolution information for each page individually which may result in a slower load operation.

Example

For an example, refer to DocumentFactory.LoadFromFile or DocumentFactory.LoadFromUri.

Requirements

Target Platforms

See Also

Reference

LoadDocumentOptions Class
LoadDocumentOptions Members

Error processing SSI file
   Leadtools.Documents requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features