Click or drag to resize

PdfPrintSettings Class

Version 110.0.300
Print to Pdf Settings
Inheritance Hierarchy
SystemObject
  CefSharpPdfPrintSettings

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 110.0.300.0 (110.0.300.0)
Syntax
public sealed class PdfPrintSettings

The PdfPrintSettings type exposes the following members.

Constructors
  NameDescription
Public methodPdfPrintSettings
Initializes a new instance of the PdfPrintSettings class
Top
Properties
  NameDescription
Public propertyBackgroundsEnabled Obsolete.
Set to true to print background graphics or false to not print background graphics.
Public propertyDisplayHeaderFooter
Set to true to display the header and/or footer. Modify |header_template| and/or |footer_template| to customize the display.
Public propertyFooterTemplate
HTML template for the print footer. Only displayed if DisplayHeaderFooter is true. Should be valid HTML markup with the following classes used to inject printing values into them: - date: formatted print date - title: document title - url: document location - pageNumber: current page number - totalPages: total pages in the document For example, "<span class=title></span>" would generate a span containing the title.
Public propertyHeaderFooterEnabled Obsolete.
Set to true to print headers and footers or false to not print headers and footers.
Public propertyHeaderTemplate
HTML template for the print header. Only displayed if DisplayHeaderFooter is true. Should be valid HTML markup with the following classes used to inject printing values into them: - date: formatted print date - title: document title - url: document location - pageNumber: current page number - totalPages: total pages in the document For example, "<span class=title></span>" would generate a span containing the title.
Public propertyLandscape
Set to true for landscape mode or false for portrait mode.
Public propertyMarginBottom
Margins in inches. Only used if MarginType is set to Custom.
Public propertyMarginLeft
Margins in inches. Only used if MarginType is set to Custom.
Public propertyMarginRight
Margins in inches. Only used if MarginType is set to Custom.
Public propertyMarginTop
Margins in inches. Only used if MarginType is set to Custom.
Public propertyMarginType
Margin type.
Public propertyPageRanges
Paper ranges to print, one based, e.g. '1-5, 8, 11-13'. Pages are printed in the document order, not in the order specified, and no more than once. Defaults to empty string, which implies the entire document is printed. The page numbers are quietly capped to actual page count of the document, and ranges beyond the end of the document are ignored. If this results in no pages to print, an error is reported. It is an error to specify a range with start greater than end.
Public propertyPaperHeight
Output paper size in inches. If either of these values is less than or equal to zero then the default paper size (letter, 8.5 x 11 inches) will be used.
Public propertyPaperWidth
Output paper size in inches. If either of these values is less than or equal to zero then the default paper size (letter, 8.5 x 11 inches) will be used.
Public propertyPreferCssPageSize
Set to true to prefer page size as defined by css. Defaults to false in which case the content will be scaled to fit the paper size.
Public propertyPrintBackground
Set to true to print background graphics or false to not print background graphics.
Public propertyScale
The percentage to scale the PDF by before printing (e.g. .5 is 50%). If this value is less than or equal to zero the default value of 1.0 will be used.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also