/// <summary> /// Constructor. /// </summary> /// <param name="mainPart">The mainDocumentPart of a document where to write the conversion to.</param> /// <param name="webRequester">Factory to download the images.</param> /// <remarks>We preload some configuration from inside the document such as style, bookmarks,...</remarks> public HtmlConverter(MainDocumentPart mainPart, IWebRequest webRequester = null) { this.knownTags = InitKnownTags(); this.mainPart = mainPart ?? throw new ArgumentNullException("mainPart"); this.htmlStyles = new HtmlDocumentStyle(mainPart); this.webRequester = webRequester ?? new DefaultWebRequest(); }
/// <summary> /// Constructor. /// </summary> /// <param name="mainPart">The mainDocumentPart of a document where to write the conversion to.</param> /// <remarks>We preload some configuration from inside the document such as style, bookmarks,...</remarks> public HtmlConverter(MainDocumentPart mainPart) { this.mainPart = mainPart ?? throw new ArgumentNullException("mainPart"); this.RenderPreAsTable = true; this.ImageProcessing = ImageProcessing.AutomaticDownload; this.knownTags = InitKnownTags(); this.htmlStyles = new HtmlDocumentStyle(mainPart); this.knownImageParts = new Dictionary <Uri, CachedImagePart>(); this.WebProxy = new WebProxy(); }
internal ParagraphStyleCollection(HtmlDocumentStyle documentStyle) { this.documentStyle = documentStyle; }
internal RunStyleCollection(HtmlDocumentStyle documentStyle) { this.documentStyle = documentStyle; }
internal TableStyleCollection(HtmlDocumentStyle documentStyle) { this.documentStyle = documentStyle; paragraphStyle = new ParagraphStyleCollection(documentStyle); }