What’s New in 2023 Volume 2: JavaScript Word Processor

Jollen Moyani - Jul 27 '23 - - Dev Community

Syncfusion’s JavaScript Word Processor (document editor) is used to create, edit, view, and print Word documents. Its rich feature set includes editing text, formatting contents, resizing images and tables, finding and replacing text, bookmarks, tables of contents, printing, importing and exporting documents.

Let’s explore the exciting new features introduced in the JavaScript Word Processor for the 2023 Volume 2 release.

Link to previous header or footer

You can link or unlink the header and footer of the previous section to the current section in a Word document. This can be useful if you want to create a consistent look across your document or if you want to create different headers and footers for each section.

Refer to the following code example.

// Different first page.
container.documentEditor.selection.sectionFormat.firstPageHeader.linkToPrevious = false;
container.documentEditor.selection.sectionFormat.firstPageFooter.linkToPrevious = false;

// Odd page.
container.documentEditor.selection.sectionFormat.oddPageHeader.linkToPrevious = false;
container.documentEditor.selection.sectionFormat.oddPageFooter.linkToPrevious = false;

//Even page.
container.documentEditor.selection.sectionFormat.firstPageHeader.linkToPrevious = false;
container.documentEditor.selection.sectionFormat.firstPageFooter.linkToPrevious = false;
Enter fullscreen mode Exit fullscreen mode

Header and footer linking in JavaScript Word Processor

Header and footer linking in JavaScript Word Processor

Alternate text for image

You can add alternative text (alt text) for images in a Word document. Using alt text, individuals utilizing screen readers or other assistive technologies can clearly understand the images within the document. Alt text is significant for accessibility because it will enable all users to understand the content of a Word document.

Refer to the following code example.

// Set alternate text for the image.
container.documentEditor.selection.sectionImageFormat.alternateText = "Mountain-200";

//Inserting image with alternate text.
container.documenteditor.editor.insertImage(<base64String>, 190, 120, Mountain-200);
Enter fullscreen mode Exit fullscreen mode

Adding alternate text for images in JavaScript Word Processor

Adding alternate text for images in JavaScript Word Processor

Character spacing and scaling

Character spacing and scaling are two different ways to customize the appearance of text in a Word document. Character spacing refers to the space between individual characters, while scaling refers to the characters’ size. You can increase the character spacing between the letters of a word to make it stand out. You can scale up the text to make it easier to read or scale it down to save space.

Character spacing and scaling in JavaScript Word Processor

Character spacing and scaling in JavaScript Word Processor

Conclusion

Thanks for reading! In this blog, we’ve seen the new features added to the Syncfusion JavaScript Word Processor for the 2023 Volume 2 release. We hope you’ll enjoy exploring these user-friendly enhancements, and we welcome your feedback in the comments section below.

To learn more about what’s new in this release, please visit our Release Notes and What’s New pages. If you’re an existing customer, you can download the latest version of Essential Studio from our License and Downloads page. If you’re not yet a customer, we invite you to try our full range of features with a 30-day free trial.

For questions, you can contact us through our support forum, support portal, or feedback portal. We’re always happy to assist you!

Related blogs

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .