Quantcast
Channel: html2openxml Discussions Rss Feed
Viewing all articles
Browse latest Browse all 228

New Post: converter parse img returns nothing

$
0
0
this is my code:

Document document = new Document() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 wp14" } };
            DocumentNamespace(document);
            MainPart.Document = document;

            Body body = new Body();
            document.Append(body);
            HtmlConverter converter = new HtmlConverter(MainPart);
            //converter.ImageProcessing = ImageProcessing.ManualProvisioning;
            //converter.ProvisionImage += converter_ProvisionImage;
            foreach (ParagraphObject paragraphObject in paragraphs)
            {
                var htmlParagraphs = converter.Parse(paragraphObject.TitleAfterParsing);
                foreach (Paragraph paragraph in htmlParagraphs)
                    body.Append(GenerateCustomParagraph(paragraphObject, paragraph, true));

                switch (paragraphObject.Type)
                {
                    case ParagraphObject.ParagraphType.Text:
                        htmlParagraphs = converter.Parse(paragraphObject.ContentAfterParsing);
                        for (int i = 0; i < htmlParagraphs.Count; i++)
                        {
[...]
when i parse html tag img with a src being an valid url it return no htmlParagraps
i use htmlTOopenXML 1.4.1

Viewing all articles
Browse latest Browse all 228

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>