


/ Returned is the actual width and height of the rendered html. / Clip the graphics so the html will not be rendered outside the max height bound given. / given max height not rendering the html below it. Height is zero the html will use all the required height, otherwise it will clip at the Width is zero the html will use all the required width, otherwise it will perform line / Renders the specified HTML source on the specified location and max size restriction. Using (var container = new HtmlContainer())Ĭontainer.MaxSize = new Size(maxWidth, 0) Ĭontainer.AvoidAsyncImagesLoading = true Ĭontainer.StylesheetLoad += stylesheetLoad Public static Size Measure(string html, double maxWidth = 0, CssData cssData = null,ĮventHandler stylesheetLoad = null, EventHandler imageLoad = null) / optional: bound the width of the html to render in (default - 0, unlimited)
ACTUAL SIZE SPYDERCO G CLIP IMAGE FULL
/ it can be the longest text line or full image width. / If no max width restriction is given the layout will use the maximum possible width required by the content, / Measure the size (width and height) required to draw the given html under given max width restriction. Return GeneratePdf(html, config, cssData, stylesheetLoad, imageLoad) Public static PdfDocument GeneratePdf(string html, PageSize pageSize, int margin = 20, CssData cssData = null, EventHandler stylesheetLoad = null, EventHandler imageLoad = null) / optional: can be used to overwrite image resolution logic / optional: can be used to overwrite stylesheet resolution logic / optional: the style to use for html rendering (default - use W3 default style) / the margin to use between the HTML and the edges of each page
ACTUAL SIZE SPYDERCO G CLIP IMAGE PDF
/ the page size to use for each page in the generated pdf
