←Select platform

DocumentResolution Property

Summary

Document resolution (in dots per inch) of the resulting document.

Syntax
C#
VB
Objective-C
C++
Java
public int DocumentResolution { get; set; } 
Public Property DocumentResolution As Integer 
@property (nonatomic, assign) NSInteger documentResolution 
public int getDocumentResolution() 
public void setDocumentResolution(int resolution) 
public: 
property int DocumentResolution { 
   int get(); 
   void set (    int ); 
} 

Property Value

Document resolution value given in dots per inch unit and it controls the dimensions of the resulting document. Default value is 0 (use the resolution of the actual page).

Remarks

When creating documents, the DocumentWriter object will use the resolution set in the Enhanced Metafile handle passed to DocumentWriter.AddPage or DocumentWriter.InsertPage methods through DocumentWriterEmfPage.EmfHandle. However, sometimes it is desirable to override this behavior and use a pre-calculated fixed value for the resolution instead. To do this, change the value of the DocumentResolution property from the default value of 0 to the desired value before any calls to DocumentWriter.AddPage or DocumentWriter.InsertPage.

Example

For an example, refer to DocumentWriter.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Writer Assembly