What if you could build a document generation engine once and make it available across multiple programming languages?
That is one of the ideas behind FlowPDF, an open-source document generation and processing project built around a shared core written in Rust.
We started working on FlowPDF with an architectural goal: maintain a single document engine while making its capabilities accessible to developers working with different programming languages.
Why build a document engine with Rust?
Document generation is more complex than simply writing content into a PDF file.
It involves layout calculations, positioning, text rendering, font handling, graphics, pagination, and binary output processing.
We chose Rust as the foundation of FlowPDF because we wanted a shared native core that could serve multiple language ecosystems.
Rather than maintaining five independent implementations, our approach is to develop the engine once and expose it through language-specific SDKs.
One core, five ecosystems
FlowPDF currently provides integrations for five programming ecosystems:
| Ecosystem | Distribution |
|---|---|
| C# / .NET | NuGet |
| Python | PyPI |
| Java | Maven Central |
| JavaScript / TypeScript | npm |
| Rust | crates.io |
The important architectural decision is that these integrations share the same Rust core.
This allows us to centralize the engine's implementation while providing language-specific interfaces for developers.
What can FlowPDF do?
FlowPDF focuses on document generation and processing.
Some of its capabilities include:
- PDF document generation.
- Word and Excel export.
- Tables and structured document layouts.
- Vector charts.
- Custom TTF font support.
- PDF content and metadata extraction.
Our objective is to provide developers with a consistent document-generation foundation that can be used across different technology stacks.
The interesting part: cross-language interoperability
Building a shared engine is only part of the challenge.
The other part is making it accessible from different programming languages without losing the characteristics developers expect from their respective ecosystems.
Some of the engineering challenges involved in this approach include:
- Native interoperability.
- Memory ownership and data conversion.
- Error handling across language boundaries.
- Platform-specific packaging.
- SDK API design.
- Consistency between language integrations.
Each ecosystem introduces different expectations and technical constraints.
For example, a good C# API should feel natural to .NET developers, while a Python SDK should follow Python conventions.
The shared engine should not force every language to adopt the same programming style.
What about performance?
We have conducted internal benchmarks comparing FlowPDF with QuestPDF.
Our tests were conducted using:
- .NET 10.
- Windows x64.
- Release configuration.
- Invoice and document-generation scenarios.
- Native Rust execution and execution with C# post-processing.
The results showed significant differences across the tested scenarios.
However, these are internal .NET benchmark results. They should not be interpreted as performance measurements for Python, Java, or Node.js.
We believe that reproducible benchmarks, transparent methodology, and independent evaluations are essential when comparing document-generation engines.
Why open source?
FlowPDF is free and open source.
We want developers to be able to inspect the implementation, experiment with the SDKs, report issues, suggest improvements, and contribute to the project.
We are particularly interested in feedback from developers who have experience with native libraries, document-generation systems, and multi-language software architectures.
Explore FlowPDF
GitHub repository:
https://github.com/CodePro47RD/FlowPDF
Documentation:
https://codepro47rd-github-io.translate.goog/FlowPDF/?_x_tr_sl=es&_x_tr_tl=en&_x_tr_hl=es-419
Package ecosystems:
- NuGet: https://www.nuget.org/
- PyPI: https://pypi.org/project/flowpdf/
- Maven Central: https://central.sonatype.com/artifact/io.github.codepro47rd/flowpdf
- npm: https://www.npmjs.com/package/flowpdf
- crates.io: https://crates.io/crates/flowpdf
Project developers
FlowPDF is developed by:
Edwin Miguel Abreu Cruz
https://edwin.cpro47.com
Felix R. Benzan
https://www.felixbenzan.com.do
We'd like your feedback
We are interested in hearing from developers who have built native libraries or multi-language SDKs.
A few questions we would love to discuss:
- What are the biggest challenges when maintaining one native core across multiple programming languages?
- How would you approach API consistency while preserving the conventions of each ecosystem?
- What would you consider essential before adopting a Rust-powered document engine in production?
We are building FlowPDF in the open and would appreciate technical feedback from the developer community.
GitHub contributions, bug reports, and technical discussions are welcome.

