Go LIbrary to Generate & Edit MS Word Documents
Open Source Go Library for Managing & Automating common Word Processing tasks like inserting Header & Footer, Tables & Images to Word DOCX files & more.
unioffice is a powerful open source pure Go library that allows software developers to manage word documents and automate common word processing tasks with ease inside their own applications without requiring Microsoft Word. The library is quite well optimized and allows you to easily edit the code to meet your requirements.
The unioffice library is a strong Go-based library that can be used for generating, editing, formatting, and processing of Office Open XML documents. The library supports several important word processing features, such as read, write & modify Word documents, Text Formatting support, Auto-generated table of contents, Placing an on a document page, headers and footers insertion, adding tables, Opening a document as a template, form fields support and much more.
At A Glance
An overview of unioffice features.
- Read DOCX files
- Write DOCX files
- Edit Word DOCX
- Add Paragraphs
- Set fonts
- Add tables
- Add header & footers
- Text alignment
- Add images
- Bookmarks support
- Hyperlinks support
unioffice only requires Go runtime.
Getting Started with unioffice
The recommended way to unioffice into your project is by using GitHub. Please use the following command for a smooth installation.
Install unioffice via GitHub
go get github.com/unidoc/unioffice/ go build -i github.com/unidoc/unioffice/...
Create Word DOCX Document via Go API
The open source library unioffice has provided the facility for creating a new Word DOCX Document with ease. You can also easily open and modify an existing Microsoft Word Document inside your own applications. The library also included features for adding new text paragraphs, insert images to a page, text alignment, adding headers and footer, add tables, and many more.
Insert Images in Word DOCX Files
The open source library unioffice provides software developers the ability to use images inside Microsoft Word documents. It supports functionalities like inserting images to the place of your choice, modify an existing image, text wrapping around the image, delete the image, and many more. For adding an image it is necessary to provide name and location of the image.
Add Header & Footer to Word Document
Headers and footers can be used to include the information that users want to appear on e page of a document such as an author name, document title, or page numbers. The unioffice library allows software developers to add header & footer to word documents with ease. It also allows to have different headers and footers depending on the document section. It also included support for even, odd, first functionalities.
Working with Tables in Word DOCX
The open source library unioffice enables computer programmers to add and modify tables inside word documents. Tables are useful and can be used to organize and present data in a better way. It supports adding a table with and without borders as well as allows constructing a table style with ease. You can easily place content in a table and adjust the size according to your needs.