Hi support,
PDF attached.
Java Code :
import java.io.FileNotFoundException;
import com.aspose.pdf.HtmlSaveOptions;
import com.aspose.pdf.License;
public class AsposeTestPDF2 {
private static final String ASPOSE_TOTAL_JAVA_LIC_XML = "Aspose.Total.Java.lic.xml";
public static void setAsposeImagingLicense() {
License license = new License();
try {
license.setLicense(AsposeTestPDF2.class.getClassLoader().getResourceAsStream(ASPOSE_TOTAL_JAVA_LIC_XML));
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static void main(String[] args) throws FileNotFoundException {
setAsposeImagingLicense();
com.aspose.pdf.Document doc = new com.aspose.pdf.Document("C:/asposePOC/tmp/test.pdf");
String outHtmlFile = "C:/asposePOC/tmp/test_.html";
// Create HtmlSaveOption with tested feature
com.aspose.pdf.HtmlSaveOptions saveOptions = new com.aspose.pdf.HtmlSaveOptions();
saveOptions.setFixedLayout(true);
saveOptions.setSplitIntoPages(true);
saveOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
saveOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;
// save output as HTML
doc.save(outHtmlFile, saveOptions);
System.out.print("ww");
doc.dispose();
}
}
Regards
Dong Jian