![]() |
VOOZH | about |
dotnet add package MarcoBellini.FastReport.PDFExporter --version 2026.2.1
NuGet\Install-Package MarcoBellini.FastReport.PDFExporter -Version 2026.2.1
<PackageReference Include="MarcoBellini.FastReport.PDFExporter" Version="2026.2.1" />
<PackageVersion Include="MarcoBellini.FastReport.PDFExporter" Version="2026.2.1" />Directory.Packages.props
<PackageReference Include="MarcoBellini.FastReport.PDFExporter" />Project file
paket add MarcoBellini.FastReport.PDFExporter --version 2026.2.1
#r "nuget: MarcoBellini.FastReport.PDFExporter, 2026.2.1"
#:package MarcoBellini.FastReport.PDFExporter@2026.2.1
#addin nuget:?package=MarcoBellini.FastReport.PDFExporter&version=2026.2.1Install as a Cake Addin
#tool nuget:?package=MarcoBellini.FastReport.PDFExporter&version=2026.2.1Install as a Cake Tool
Improved PDF Exporter for FastReport Open Source using PDFSharp-GDI as the rendering engine.
This project aims to improve PDF generation quality and reduce output file size compared to the default PDF exporter shipped with the FastReport Open Source edition.
Note: This project is not intended to replace FastReport's commercial offerings. If you need advanced or enterprise-grade features, consider the official commercial products.
Install via NuGet Package Manager:
dotnet add package MarcoBellini.FastReport.PDFExporter
using MarcoBellini.FastReport.PDFExporter;
void ExportReport()
{
using var report = new Report();
using var pdfExport = new PDFExport();
report.Load("Reports/MyReport.frx");
report.Prepare();
var outputPath = Path.Combine(Path.GetTempPath(), "Report.pdf");
report.Export(pdfExport, outputPath);
}
using MarcoBellini.FastReport.PDFExporter;
byte[] ExportReportToBytes()
{
using var report = new Report();
using var pdfExport = new PDFExport();
using var stream = new MemoryStream();
report.Load("Reports/MyReport.frx");
report.Prepare();
report.Export(pdfExport, stream);
return stream.ToArray();
}
using MarcoBellini.FastReport.PDFExporter;
void ExportReportWithData(IEnumerable<MyRecord> data)
{
using var report = new Report();
using var pdfExport = new PDFExport();
report.Load("Reports/MyReport.frx");
report.RegisterData(data, "MyDataSource");
report.Prepare();
var outputPath = Path.Combine(Path.GetTempPath(), "Report.pdf");
report.Export(pdfExport, outputPath);
}
This exporter is Windows-only due to the following dependencies:
System.Drawing.Common, which Microsoft has restricted to Windows starting with .NET 6 (see docs)It can be used in:
The following brush types are not compatible with PDFSharp and will not render correctly:
PathGradientBrushHatchBrushTextureBrushWhy? PDFSharp does not have a direct equivalent for these GDI+ brush types, so they cannot be translated into PDF drawing instructions.
LineCap.Triangle is not supportedContributions, bug reports, and feature requests are welcome! Feel free to open an or submit a .
Please make sure to:
This project is licensed under the MIT License. See the file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 net8.0-windows7.0 is compatible. net9.0-windows net9.0-windows was computed. net9.0-windows7.0 net9.0-windows7.0 is compatible. net10.0-windows net10.0-windows was computed. net10.0-windows7.0 net10.0-windows7.0 is compatible. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.