// Load source PDF file<o:p></o:p>
Document doc = new Document("Downloads/23cbf461-5bc2-4907-b34b-6d394d0f096b.pdf");
// Instantiate HTML Save options object
Aspose.Pdf.HtmlSaveOptions newOptions = new Aspose.Pdf.HtmlSaveOptions();
// Enable option to embed all resources inside the HTML
newOptions.PartsEmbeddingMode = Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
// This is just optimization for IE and can be omitted
newOptions.LettersPositioningMethod = Aspose.Pdf.HtmlSaveOptions.LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
newOptions.RasterImagesSavingMode = Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
newOptions.FontSavingMode = Aspose.Pdf.HtmlSaveOptions.FontSavingModes.SaveInAllFormats;
// Output file path
string outHtmlFile = "23cbf461-5bc2-4907-b34b-6d394d0f096b_out.html";
agukasm:When I run this application then often I get NullReferenceException in PdfDocumentConverter line: 23: pdfDocument.Save(outputStream, this.GetHtmlSaveOptions());I have tested your shared sample application and noticed the reported issue, so logged a ticket PDFNEWNET-40327 in our issue tracking system for further investigation and resolution.We are sorry for the inconvenience caused.Best Regards,
agukasm:Another issue is related to result html files, mostly on second page linebreaks are missing. My result files attached.I have also noticed the line break issues in resultant HTML pages and logged a ticket PDFNEWNET-40328 in our issue tracking system for rectification. We will keep you updated about the issue resolution progress.Best Regards,
Our customers are waiting for solution.
can you please give an indication about the solving time of this bug? I am the representative of the customer whom Mati mentioned earlier and I must emphasize the importance of this issue. Our go live date depends on fixing this bug.
The issues you have found earlier (filed as PDFNEWNET-40327) have been fixed in Aspose.Pdf for .NET 16.10.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Seems that the issue (PDFNEWNET-40327) still remains on MS Windows Server Core 2008 R2 v6.1.7601 Service Pack 1
Note that I mentioned Windows "Server Core"