Class PdfGenerationOptions
- Namespace
- CobaltPdf.Configuration
- Assembly
- CobaltPdf.dll
public class PdfGenerationOptions
- Inheritance
-
PdfGenerationOptions
- Inherited Members
Properties
BypassCsp
Gets or sets whether to bypass the page's Content Security Policy (CSP). Required to be TRUE if injecting custom fonts or scripts into strict websites.
public bool BypassCsp { get; set; }
Property Value
FontDirectory
public string FontDirectory { get; set; }
Property Value
HtmlContent
public string HtmlContent { get; set; }
Property Value
JavaScriptToRun
A custom JavaScript to execute on the page after the page is idle, but before the 'WaitStrategy' is applied.
public string JavaScriptToRun { get; set; }
Property Value
Landscape
public bool Landscape { get; set; }
Property Value
Margins
Gets or sets the PDF page margins. Defaults to 1cm. Use MarginOptions.None for no margins.
public MarginOptions Margins { get; set; }
Property Value
MediaType
Gets or sets the CSS media type to emulate. Defaults to Screen.
public CssMediaType MediaType { get; set; }
Property Value
OutputPath
public string OutputPath { get; set; }
Property Value
PaperFormat
public string PaperFormat { get; set; }
Property Value
PrintBackground
public bool PrintBackground { get; set; }
Property Value
Url
public string Url { get; set; }
Property Value
WaitStrategy
The wait strategy to use after the page is idle and 'JavaScriptToRun' has executed. Defaults to WaitOptions.DefaultNetworkIdle.
public WaitOptions WaitStrategy { get; set; }