I try to build a service to convert document to html5 by following process:
Hi,
I want to convert : doc, docx, xls,xlsx, ppt, pptx, pdf to HTML5
Hi,
Thank you for the details. In reference to the Excel (Aspose.Cells API) and PowerPoint (Aspose.Slides API) formats, we have already logged feature requests under ticket IDs CELLSJAVA-42044 and SLIDESJAVA-35704 in our issue tracking system. Your post has also been linked to these tickets. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.
hiepaof:
With Word.Aspose I can convert to HTML5 directly but i think it will not display page by page. It will display HTML like winword convert doc to html.
Well, you can split Word document pages by using page splitter utility prepared by using Aspose.Words API. My fellow worker has narrated about this approach in another reply. Please refer to this: Split Word document Pages. Once you get a page in the Document class object, then you can convert it to HTML5 as narrated there: Convert a Word to HTML5
Using Aspose.Pdf API, you can select a few pages from input PDF and then perform the PDF to HTML5 conversion. Please refer to this help topic: Working with Pages
If I convert directly word to html5, does it keep the same page format with original ? I’m afraid the conversion keep text and format text only, not include page format .
Hi,
Please check if the following solution is acceptable for you?
C# code to convert DOCX pages into HTML fixed format
Document doc = new Document(MyDir + @"input.docx");
HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
options.PageCount = 1;
for (int pageCount = 0; pageCount < 4; pageCount++)
{
options.PageIndex = pageCount;
doc.Save(MyDir + "out_" + pageCount + ".html", options);
}
Best regards,
hello. I have request to convert document to html or html5.
Hi Suixing,
Can I convert page 1 to page 5 in one html file and CSS and image embed ?
Hi,
// set output HTML options
HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
// set page count
options.PageCount = 5;
// set index of the first page
options.PageIndex = 0;
// embed CSS
options.ExportEmbeddedCss = true;
// embed images
options.ExportEmbeddedImages = true;
// save HTML document
doc.Save(@“C:\temp<span class=“kwrd”>out.html”, options);
is it possible with JAVA component ?
Hi,
// set output HTML options
HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
// set page count
options.setPageCount(5);
// set index of the first page
options.setPageIndex(0);
// embed CSS
options.setExportEmbeddedCss(true);
// embed images
options.setExportEmbeddedImages(true);
// save HTML document
doc.save(“C:\temp\out.html”, options);
The issues you have found earlier (filed as SLIDESJAVA-35704) have been fixed in Aspose.Slides for Java 22.8 (ZIP).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.