Class PrintToPdfOptions
Inherited Members
Namespace: pdftron.PDF
Assembly: PDFNet.dll
Syntax
public class PrintToPdfOptions : OptionsBase
Constructors
PrintToPdfOptions()
Constructor.
Declaration
public PrintToPdfOptions()
Methods
GetHorizontalPageMargin()
Gets the value HorizontalPageMargin from the options object The horizontal margins (left and right) in points. The default is a 1/4 of an inch or 18 points.
Declaration
public double GetHorizontalPageMargin()
Returns
Type | Description |
---|---|
double | a double, The horizontal margins (left and right) in points. The default is a 1/4 of an inch or 18 points.. |
GetPageHeight()
Gets the value PageHeight from the options object The page height to use in points. If not set (or set to 0), uses letter paper size.
Declaration
public double GetPageHeight()
Returns
Type | Description |
---|---|
double | a double, The page height to use in points. If not set (or set to 0), uses letter paper size.. |
GetPageOrientation()
Gets the value PageOrientation from the options object Page orientation, "portrait" or "landscape".
Declaration
public string GetPageOrientation()
Returns
Type | Description |
---|---|
string | a String^, Page orientation, "portrait" or "landscape".. |
GetPageWidth()
Gets the value PageWidth from the options object The page width to use in points. If not set (or set to 0), uses letter paper size.
Declaration
public double GetPageWidth()
Returns
Type | Description |
---|---|
double | a double, The page width to use in points. If not set (or set to 0), uses letter paper size.. |
GetVerticalPageMargin()
Gets the value VerticalPageMargin from the options object The vertical margins (top and bottom) in points. The default is a 1/4 of an inch or 18 points.
Declaration
public double GetVerticalPageMargin()
Returns
Type | Description |
---|---|
double | a double, The vertical margins (top and bottom) in points. The default is a 1/4 of an inch or 18 points.. |
SetHorizontalPageMargin(double)
Sets the value for HorizontalPageMargin in the options object The horizontal margins (left and right) in points. The default is a 1/4 of an inch or 18 points.
Declaration
public PrintToPdfOptions SetHorizontalPageMargin(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The horizontal margins (left and right) in points. The default is a 1/4 of an inch or 18 points. |
Returns
Type | Description |
---|---|
PrintToPdfOptions | this object, for call chaining |
SetPageHeight(double)
Sets the value for PageHeight in the options object The page height to use in points. If not set (or set to 0), uses letter paper size.
Declaration
public PrintToPdfOptions SetPageHeight(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The page height to use in points. If not set (or set to 0), uses letter paper size. |
Returns
Type | Description |
---|---|
PrintToPdfOptions | this object, for call chaining |
SetPageOrientation(string)
Sets the value for PageOrientation in the options object Page orientation, "portrait" or "landscape".
Declaration
public PrintToPdfOptions SetPageOrientation(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | Page orientation, "portrait" or "landscape". |
Returns
Type | Description |
---|---|
PrintToPdfOptions | this object, for call chaining |
SetPageWidth(double)
Sets the value for PageWidth in the options object The page width to use in points. If not set (or set to 0), uses letter paper size.
Declaration
public PrintToPdfOptions SetPageWidth(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The page width to use in points. If not set (or set to 0), uses letter paper size. |
Returns
Type | Description |
---|---|
PrintToPdfOptions | this object, for call chaining |
SetVerticalPageMargin(double)
Sets the value for VerticalPageMargin in the options object The vertical margins (top and bottom) in points. The default is a 1/4 of an inch or 18 points.
Declaration
public PrintToPdfOptions SetVerticalPageMargin(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The vertical margins (top and bottom) in points. The default is a 1/4 of an inch or 18 points. |
Returns
Type | Description |
---|---|
PrintToPdfOptions | this object, for call chaining |