Hi,
Hi Prasanna,
HtmlFixedSaveOptions opts = new HtmlFixedSaveOptions();
opts.PageCount = 1;
for (int i = 0; i < doc.PageCount; i++)
{
opts.PageIndex = i;
doc.Save(MyDir + @"16.2.0_" + i + ".html", opts);
}
Hi Awais,
Hi Prasanna,
Hi Prasanna,
Document doc = new
Document(“c:/pdftest/Deforestation.pdf”);<o:p></o:p>
foreach (Page page in doc.Pages)
{
// Load source PDF file
Document tempdoc = new Document();
tempdoc.Pages.Add(page);
// Instantiate HTML Save options object
HtmlSaveOptions newOptions = new HtmlSaveOptions();
// Enable option to embed all resources inside the HTML
newOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
// This is just optimization for IE and can be omitted
newOptions.LettersPositioningMethod = HtmlSaveOptions.LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
newOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
newOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;
// Output file path
string outHtmlFile = @"c:\pdftest\Deforestation_Page"+ page.Number+".html";
tempdoc.Save(outHtmlFile, newOptions);
}