You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/english/java/document-loading-and-saving/advance-html-documents-saving-options/_index.md
+71-15
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ public void exportRoundtripInformation() throws Exception {
29
29
With the `exportFontsAsBase64` method, you can export fonts used in the document as Base64-encoded data in the HTML. This ensures that the HTML representation retains the same font styles as the original Word document.
@@ -42,7 +42,7 @@ public void exportFontsAsBase64() throws Exception {
42
42
The `exportResources` method allows you to specify the type of CSS stylesheet and export font resources. You can also set a resource folder and an alias for resources in the HTML.
@@ -58,27 +58,48 @@ public void exportResources() throws Exception {
58
58
The `convertMetafilesToEmfOrWmf` method allows you to convert metafiles in the document to either EMF or WMF format, ensuring compatibility and smooth rendering in HTML.
With the `addCssClassNamePrefix` method, you can add a prefix to CSS class names in the exported HTML. This helps prevent conflicts with existing styles.
In this tutorial, we explored the advanced HTML document saving options provided by Aspose.Words for Java. These options give you fine-grained control over the conversion process, allowing you to create HTML documents that closely resemble the original Word documents.
123
179
124
-
## 12. FAQs
180
+
## FAQ's
125
181
Here are some frequently asked questions about working with Aspose.Words for Java and HTML document saving options:
126
182
127
183
### Q1: How can I convert HTML back to Word format using Aspose.Words for Java?
@@ -174,7 +174,7 @@ You have learned how to save images from documents using Aspose.Words for Java.
174
174
You can change the image format by specifying the desired format in the `ImageSaveOptions`.For example, to save as PNG, use `SaveFormat.PNG` as shown in the code:
This code demonstrates how to convert shapes to Office Math objects during document loading. The `setConvertShapeToOfficeMath(true)` method enables this conversion.
@@ -136,7 +136,7 @@ public void convertShapeToOfficeMath() throws Exception {
0 commit comments