Class HtmlConverterSettings
public class HtmlConverterSettings
- Inheritance
-
HtmlConverterSettings
- Inherited Members
Constructors
HtmlConverterSettings(string)
public HtmlConverterSettings(string exePath)
Parameters
exePathstring
Properties
Cookies
Set an additional cookie
public IEnumerable<HtmlConverterSettings.Cookie> Cookies { get; set; }
Property Value
DisablePdfCompression
Do not use lossless compression on pdf objects
public bool DisablePdfCompression { get; set; }
Property Value
Dpi
Change the dpi explicitly (this has no effect on X11 based systems)
public int? Dpi { get; set; }
Property Value
- int?
EnableExternalLinks
Make links to remote web pages
public bool EnableExternalLinks { get; set; }
Property Value
EnableInternalLinks
Make local links
public bool EnableInternalLinks { get; set; }
Property Value
EnableJavaScript
Do allow web pages to run javascript
public bool EnableJavaScript { get; set; }
Property Value
EnablePrintMediaType
Use print media-type instead of screen
public bool EnablePrintMediaType { get; set; }
Property Value
EnableSmartShrinking
Enable the intelligent shrinking strategy used by WebKit that makes the pixel/dpi
public bool EnableSmartShrinking { get; set; }
Property Value
ExePath
public string ExePath { get; set; }
Property Value
FooterFontName
Set footer font name (default Arial)
public string FooterFontName { get; set; }
Property Value
FooterFontSize
Set footer font size (default 12)
public int? FooterFontSize { get; set; }
Property Value
- int?
FooterSpacing
Spacing between footer and content in mm
public float? FooterSpacing { get; set; }
Property Value
FooterTextCenter
Centered footer text
public string FooterTextCenter { get; set; }
Property Value
FooterTextLeft
Left aligned footer text
public string FooterTextLeft { get; set; }
Property Value
FooterTextRight
Right aligned footer text
public string FooterTextRight { get; set; }
Property Value
FooterUrl
Adds a html footer
public string FooterUrl { get; set; }
Property Value
HeaderFontName
Set header font name (default Arial)
public string HeaderFontName { get; set; }
Property Value
HeaderFontSize
Set header font size (default 12)
public int? HeaderFontSize { get; set; }
Property Value
- int?
HeaderSpacing
Spacing between header and content in mm
public float? HeaderSpacing { get; set; }
Property Value
HeaderTextCenter
Centered header text
public string HeaderTextCenter { get; set; }
Property Value
HeaderTextLeft
Left aligned header text
public string HeaderTextLeft { get; set; }
Property Value
HeaderTextRight
Right aligned header text
public string HeaderTextRight { get; set; }
Property Value
HeaderUrl
Adds a html header
public string HeaderUrl { get; set; }
Property Value
ImageDpi
When embedding images scale them down to this dpi (default 600)
public int? ImageDpi { get; set; }
Property Value
- int?
ImageQuality
When jpeg compressing images use this quality (default 94)
public int? ImageQuality { get; set; }
Property Value
- int?
JavaScriptDelay
Wait some milliseconds for javascript finish
public int? JavaScriptDelay { get; set; }
Property Value
- int?
MarginBottom
Set the page bottom margin
public float? MarginBottom { get; set; }
Property Value
MarginLeft
Set the page left margin (default 10mm)
public float? MarginLeft { get; set; }
Property Value
MarginRight
Set the page right margin (default 10mm)
public float? MarginRight { get; set; }
Property Value
MarginTop
Set the page top margin
public float? MarginTop { get; set; }
Property Value
PageHeight
Page height
public float? PageHeight { get; set; }
Property Value
PageOrientation
Set orientation to Landscape or Portrait
public PageOrientationType PageOrientation { get; set; }
Property Value
PageSize
Set paper size to: A4, Letter, etc.
public PageSizeType PageSize { get; set; }
Property Value
PageWidth
Page width
public float? PageWidth { get; set; }
Property Value
RenderGrayscale
PDF will be generated in grayscale
public bool RenderGrayscale { get; set; }
Property Value
RenderLowQuality
Generates lower quality pdf/ps. Useful to shrink the result document space
public bool RenderLowQuality { get; set; }
Property Value
ShowFooterLine
Display line below the footer
public bool ShowFooterLine { get; set; }
Property Value
ShowHeaderLine
Display line below the header
public bool ShowHeaderLine { get; set; }
Property Value
Title
The title of the generated pdf file (The title of the first document is used if not specified)
public string Title { get; set; }
Property Value
Variables
Replace [name] with value in header and footer
public IEnumerable<HtmlConverterSettings.Variable> Variables { get; set; }
Property Value
Viewport
Set viewport size if you have custom scrollbars or css attribute overflow to emulate window size
public HtmlConverterSettings.ViewportSize Viewport { get; set; }
Property Value
WebCacheDirectory
Web cache directory
public string WebCacheDirectory { get; set; }
Property Value
WorkingDirectory
public string WorkingDirectory { get; set; }
Property Value
Zoom
Use this zoom factor (default 1)
public float Zoom { get; set; }
Property Value
Methods
ToString()
public override string ToString()