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-styling/styling-paragraphs-text/_index.md
+61-82Lines changed: 61 additions & 82 deletions
Original file line number
Diff line number
Diff line change
@@ -182,25 +182,11 @@ In this example, we set the alignment of the paragraph to
182
182
Creating lists with bullets or numbering is a common document formatting task. Aspose.Words for Java makes it straightforward. Here's how to create a bulleted list:
//Ctrl + left clicking the link in the text in Microsoft Word will take us to the URL via a new web browser window.
213
+
doc.save("InsertHyperlink.docx");
231
214
```
232
215
233
216
This code inserts a hyperlink to "https://www.example.com" with the text "Visit Example.com."
@@ -237,23 +220,7 @@ This code inserts a hyperlink to "https://www.example.com" with the text "Visit
237
220
Documents often require visual elements like images and shapes. Aspose.Words for Java enables you to insert images and shapes seamlessly. Here's how to add an image:
Field pageField =newField(doc, FieldType.FIELD_PAGE);
305
-
footer.appendChild(pageField);
264
+
builder.write("Page Number: ");
265
+
builder.insertField(FieldType.FIELD_PAGE, true);
306
266
307
-
// Add content to the document body
267
+
// Add content to the document body.
308
268
// ...
309
269
310
-
// Save the document
270
+
// Save the document.
311
271
doc.save("HeaderFooterDocument.docx");
312
272
```
313
273
@@ -318,26 +278,45 @@ In this code, we add content to both the header and footer of the document.
318
278
Tables are a powerful way to organize and present data in your documents. Aspose.Words for Java provides extensive support for working with tables. Here's an example of creating a table:
0 commit comments