Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Imaged are not rendered on converion of pdf to html

$
0
0
HI

I have converted  my pdf in to html and trying to display the html in web browser component. but the images are not rendering when displaying this html in browser component, text and other things works fine.

txtPdf.Text = openFileDialog1.FileName;
string HtmlPath = @"D:\Epub\Output\Output10.html";

Document doc = new Document(txtPdf.Text);

                    HtmlSaveOptions saveoption = new HtmlSaveOptions();
                    saveoption.FixedLayout = true;
                    saveoption.SplitIntoPages = false;
                    saveoption.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsExternalPngFilesReferencedViaSvg;
                    doc.Save(HtmlPath, saveoption);

 HtmlAgilityPack.HtmlDocument htmldoc = new HtmlAgilityPack.HtmlDocument();
                    htmldoc.Load(txtPdf.Text);



Viewing all articles
Browse latest Browse all 3131

Trending Articles