new PrintToPdfOptions()
Options for PDFNet.PrintToPdfModule.printToPdf
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.
Returns:
the current value for HorizontalPageMargin.- Type
- number
-
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.
Returns:
the current value for PageHeight.- Type
- number
-
getPageOrientation()
-
Gets the value PageOrientation from the options object Page orientation, "portrait" or "landscape".
Returns:
the current value for PageOrientation.- Type
- string
-
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.
Returns:
the current value for PageWidth.- Type
- number
-
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.
Returns:
the current value for VerticalPageMargin.- Type
- number
-
setHorizontalPageMargin(value)
-
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.
Parameters:
Name Type Description value
number the new value for HorizontalPageMargin Returns:
this object, for call chaining -
setPageHeight(value)
-
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.
Parameters:
Name Type Description value
number the new value for PageHeight Returns:
this object, for call chaining -
setPageOrientation(value)
-
Sets the value for PageOrientation in the options object Page orientation, "portrait" or "landscape".
Parameters:
Name Type Description value
string the new value for PageOrientation Returns:
this object, for call chaining -
setPageWidth(value)
-
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.
Parameters:
Name Type Description value
number the new value for PageWidth Returns:
this object, for call chaining -
setVerticalPageMargin(value)
-
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.
Parameters:
Name Type Description value
number the new value for VerticalPageMargin Returns:
this object, for call chaining