Esempio n. 1
0
 /// <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;
     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();
 }
Esempio n. 2
0
        /// <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)
        {
            if (mainPart == null)
            {
                throw new ArgumentNullException("mainPart");
            }

            this.mainPart         = mainPart;
            this.RenderPreAsTable = true;
            this.ImageProcessing  = ImageProcessing.AutomaticDownload;
            this.knownTags        = this.InitKnownTags();
            this.htmlStyles       = new HtmlDocumentStyle(mainPart);
            this.knownImageParts  = new Dictionary <Uri, CachedImagePart>();
            this.WebProxy         = new WebProxy();
        }
 internal TableStyleCollection(HtmlDocumentStyle documentStyle)
 {
     this.documentStyle = documentStyle;
     paragraphStyle     = new ParagraphStyleCollection(documentStyle);
 }
 internal ParagraphStyleCollection(HtmlDocumentStyle documentStyle)
 {
     this.documentStyle = documentStyle;
 }
 internal RunStyleCollection(HtmlDocumentStyle documentStyle)
 {
     this.documentStyle = documentStyle;
 }
Esempio n. 6
0
 internal TableStyleCollection(HtmlDocumentStyle documentStyle)
 {
     this.documentStyle = documentStyle;
     paragraphStyle = new ParagraphStyleCollection(documentStyle);
 }
 internal ParagraphStyleCollection(HtmlDocumentStyle documentStyle)
 {
     this.documentStyle = documentStyle;
 }