|
| 1 | +--- |
| 2 | +title: Working with Document Conversions | Syncfusion |
| 3 | +description: This section illustrates how to convert a Word document into other supported file formats using Syncfusion Java Word library |
| 4 | +platform: java-file-formats |
| 5 | +control: Word Library |
| 6 | +documentation: UG |
| 7 | +--- |
| 8 | + |
| 9 | +# Word Document Conversion |
| 10 | + |
| 11 | +## Working with Document Conversions |
| 12 | + |
| 13 | +The Essential DocIO converts documents from one format to another format. Each file format document can be categorized as flow layout document or fixed layout document. |
| 14 | + |
| 15 | +**Flow layout document** |
| 16 | + |
| 17 | +* A flow document is designed to "reflow content" depending on the application. |
| 18 | +* Does not contain any information about the position of its content. |
| 19 | +* Dynamically renders the content by application at run time. |
| 20 | +* Example: DOCX, HTML and TEXT file formats. |
| 21 | + |
| 22 | +Essential DocIO can convert various flow document as fixed document by using our layout engine. Following conversions are supported by Essential DocIO. |
| 23 | + |
| 24 | +* Microsoft Word file format Conversions. |
| 25 | +* Text Conversions. |
| 26 | +* HTML Conversions. |
| 27 | + |
| 28 | +## HTML conversion |
| 29 | + |
| 30 | +Essential DocIO supports converting the HTML file into Word document and vice versa. It supports only the HTML files that meet the validation either against XHTML 1.0 strict or XHTML 1.0 Transitional schema. |
| 31 | + |
| 32 | +For further information kindly refer here. |
| 33 | + |
| 34 | +### Customizing the HTML to Word conversion |
| 35 | + |
| 36 | +You can customize the HTML to Word conversion with the following options: |
| 37 | + |
| 38 | +* Validate the HTML string against XHTML 1.0 Strict and Transitional schema |
| 39 | +* Insert the HTML string at the specified position of the document body contents |
| 40 | +* Append HTML string to the specified paragraph |
| 41 | + |
| 42 | +For further information kindly refer this link. |
| 43 | + |
| 44 | +### Customizing the Word to HTML conversion |
| 45 | + |
| 46 | +You can customize the Word to HTML conversion with the following options: |
| 47 | + |
| 48 | +* Extract the images used in the HTML document at the specified file directory |
| 49 | +* Specify to export the header and footer of the Word document in the HTML |
| 50 | +* Specify to consider Text Input field as a editable fields or text |
| 51 | +* Specify the CSS style sheet type and its name |
| 52 | + |
| 53 | +N> |
| 54 | +While exporting header and footer, DocIO exports the first section header content at the top of the HTML file and first section footer content at the end of the HTML file |
| 55 | + |
| 56 | +For further information kindly refer this link. |
| 57 | + |
| 58 | +### Supported Document elements |
| 59 | + |
| 60 | +Kindly refer to this link for the document elements and attributes that are supported by DocIO in the Word to HTML and HTML to Word conversions. |
| 61 | + |
| 62 | +## Text file |
| 63 | + |
| 64 | +Essential DocIO supports to convert the Word document into a Text file and vice versa. For further information, kindly refer to this link. |
0 commit comments