Hi Team,
I am trying to save the a word document as html file
but the reult is giving me a file that opens up as a string not as a html web page
I have used this code snippet:
OutputStream output = new ByteArrayOutputStream();
HtmlSaveOptions options = new HtmlSaveOptions();
options.setSaveFormat( SaveFormat.HTML );
options.setExportRoundtripInformation( true );
options.setEncoding( Charset.forName( “UTF-8” ) );
options.setExportPageSetup( true );
options.setExportHeadersFootersMode( ExportHeadersFootersMode.PER_SECTION );
options.setExportImagesAsBase64( true );
options.setExportFontsAsBase64( true );
template.save( output, options );
can you please help me with this ASAP
Documents.zip (101.1 KB)
word doc is the document
file named 15024383131416 should be a web page
the same i have tried with saveformat.pdf for which the file named 28584402286903 is created which is a pdf type