DefaultPageSize Property (original) (raw)
Leadtools.Document Namespace > Classes > DocumentPages Class > Properties > DefaultPageSize Property
←Select platform
In This Topic ▼
Summary
Default page size of this document.
Syntax
C#
C++/CLI
Java
Python
public LeadSizeD DefaultPageSize { get; set; }
public:
property [LeadSizeD](../l/leadsized.html)^ DefaultPageSize
{
[LeadSizeD](../l/leadsized.html)^ get()
void set([LeadSizeD](../l/leadsized.html)^ value)
}
public LeadSizeD getDefaultPageSize()
public void setDefaultPageSize(LeadSizeD value)
DefaultPageSize # get and set (DocumentPages)
Property Value
The default page size of this document. Default value depends on how this document was created. This value cannot be Empty.
Remarks
DefaultPageSize is in document units, refer to Document Library Coordinate System for more information.
DocumentPage.SetImage can be called to set a new raster image for the page. The pageSize and Resolution will be updated from the image parameter passed. If the image passed was null, then the document uses the values of DefaultPageSize andDefaultResolution as the new Size and Resolution respectively.
DefaultResolution is also used by the methods used to convert between document units and pixels, refer toDocument Library Coordinate System for more information.
The initial values of DefaultPageSize and DefaultResolution is as follows:
- If this LEADDocument was originally created from an existing document file or URL usingDocumentFactory.LoadFromFile,DocumentFactory.LoadFromUri,DocumentFactory.LoadFromUriAsync, orDocumentFactory.LoadFromStream then the values are updated based on the original document. The internal parsing code will usually use the size and resolution of the first page found in the document.
- If this LEADDocument was created usingCreate(CreateDocumentOptions) is 0,0 andDefaultResolution is 0) and the user must update them to the desired values after the document is created.
Requirements
See Also
Reference
Help Version 22.0.2023.4.21
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.