Introduction
What is it?
FluentWriter is a .NET library for generating Word (.docx) documents. At it's core, it is a library that builds on top of the Office Open XML (OOXML) SDK provided by Microsoft. This SDK is extremely powerful but it is too low level for most users who are just looking to programmatically create a document. FluentWriter instead focuses on developer experience by providing a fluent API for scaffolding documents in common language.
Inspiration
FluentWriter is inspired from QuestPDF - a modern C# library for generating PDF documents. In fact, both libraries share similar functions and properties.
Implementation
FluentWriter's minimal API makes it incredibly easy to create and prototype Word documents. Here's a simple example that demonstrates its intuitive syntax:
// TODO: Copy example from code-base when feature set is finalized.
This code generates a PDF document with the following layout:
![]
Are you ready for more?
FluentWriter scales seamlessly with your document complexity. To explore its full potential, check out the Invoice Tutorial, where you'll learn to create a professional invoice in less than 200 lines of code.