Welcome to our online tutorial
The goal of this tutorial is to offer a comprehensive account of all the methods and functionality of the Docxpresso library.
We have tried to make this tutorial as easy to read and as practical as possible by including simple, yet illustrative, examples of all different available Docxpresso methods. These included examples may give you a jump start that will allow you to generate sophisticated documents and reports without the need to go through all the gory details.
This tutorial covers the following general topics:
- General formatting and rendering options.
- Working with templates.
- Generating documents from HTML5 + CSS code.
- Standard document components.
- References and fields.
- Advanced document components:
General formatting and rendering options
With the help of Docxpresso you may generate documents in PDF, Word, ODT (Open Document Format) or RTF with no restrictions in their layout or structure. You may:
- Set the layout of your document.
- Insert new doxcument sections with their own custom layouts.
- Add headers and footers to your document.
- Include document metadata like authorship, title, etcetera.
- Use predefined themes.
You may also know about the multiple PDF rendering options available in Docxpresso by visiting:
Working with templates
Docxpresso may use templates just as a way to simplify all the formatting and layout document options:
- Templates for formatting
or as truly dynamical objects that may be manipulated in multiple ways:
- setting the cursor anywhere in the template,
- cloning or removing any of its contents and
- replacing its contents.
Generating documents from HTML5 + CSS code
The capacity of generating all kind of documents out of HTML5 and CSS code is one of the most distinctive features of Docxpresso.
Docxpresso also accepts a custom extended version of HTML5 that allows for the insertion of charts, footnotes, math formulas, etcetera.
With the help of the HTML parsing functionality you will be able to learn how to generate very complex documents in a few minutes:
Standard document components
You, of course, may use directly the complete Docxpresso API to generate all the standard document components like:
- Nested lists.
- Links and bookmarks.
- Page, line and column breaks.
- Tabbed text.
References and fields
Any complex document needs the use of references and aids to navigation to easily browse its contents. Besides the standard links and bookmarks Docxpresso offers the possibility to:
- Insert dynamical tables of contents (TOCs).
- Create footnotes and endnotes.
- Include fields (like page numbers, dates, authorship info, etcetera).
Advanced document components
Besides all the standard components Docxpresso also allows for the insertion of:
- All kind of 2D and 3D charts: pie, donut, bar, column, bubble, chart, area, line, etcetera
- Sophisticated forms which data may be interactively sent to a web server for further processing.
- Math formulas.
We hope that you will enjoy this tutorial and, please, let us know where you believe there is room for improvement :-)