Note: This thread is different from our another thread in notes - http://www.aspose.com/community/forums/628205/powerpoint-notes-to-html-loss-of-information-if-we-edit-ppt-notes/showthread.aspx#628205.
Here we create a new PPTX and created a notes initially, and never edited the notes again (which is problematic as we described in another mail). This thread specifically for rendering issues I found.
Please find attached ZIP file containing PPTX and converted HTMLs.
Please use code -
for (int i = 0; i < pres.getSlides().size(); i++) {
ITextFrame tf = pres.getSlides().get_Item(i).getNotesSlide().getNotesTextFrame();
// System.out.println(tf.getParagraphs().exportToHtml(0, tf.getParagraphs().getCount(), null));
//
try {
//Creating output html file
OutputStream os = new FileOutputStream(“Hell_” + i + “.html”);
Writer writer = new OutputStreamWriter(os, “UTF16”);
// Extracting first paragraph as HTML
//Writing Paragraphs data to HTML by providing paragraph starting index, total paragraphs to be copied
writer.write(tf.getParagraphs().exportToHtml(0, tf.getParagraphs().getCount(), null));
writer.close();
} catch (Exception fo) {
throw new RuntimeException(fo);
}
}
You may see problem in HTML -
Hellooo
first
𝐴=𝜋𝑟^2
note. 55.
Hello
Hello
World
Hello
first
𝐴=𝜋𝑟^2
note. 55
We want this -
Any help would be appreciated.
Thanks.
- Prakhar