Skip to content

PdfReport.Core is a code first reporting engine, which is built on top of the iTextSharp.LGPLv2.Core and EPPlus.Core libraries

License

Notifications You must be signed in to change notification settings

VahidN/PdfReport.Core

Repository files navigation

PdfReport.Core

iTextSharp.LGPLv2.Core

PdfReport.Core is a code first reporting engine, which is built on top of the iTextSharp.LGPLv2.Core and EPPlus.Core libraries.

PdfReport.Core supports wide range of the data sources from dynamic lists to in memory strongly typed lists without needing the database. It saves your time from searching and learning a lot of tips and tricks of iTextSharp and EPPlus libraries. It's designed to be compatible with RTL languages.

sample PDF report

Install via NuGet

To install PdfReport, run the following command in the Package Manager Console:

Nuget

PM> Install-Package PdfRpt.Core

You can also view the package page on NuGet.

Linux (and containers) support

The SkiaSharp library needs extra dependencies to work on Linux and containers. Please install the following NuGet packages:

PM> Install-Package SkiaSharp.NativeAssets.Linux.NoDependencies
PM> Install-Package HarfBuzzSharp.NativeAssets.Linux

You also need to modify your .csproj file to include some MSBuild directives that ensure the required files are in a good place. These extra steps are normally not required but seems to be some issues on how .NET loads them.

<Target Name="CopyFilesAfterPublish" AfterTargets="AfterPublish">
    <Copy SourceFiles="$(TargetDir)runtimes/linux-x64/native/libSkiaSharp.so" DestinationFolder="$([System.IO.Path]::GetFullPath('$(PublishDir)'))/bin/" />
    <Copy SourceFiles="$(TargetDir)runtimes/linux-x64/native/libHarfBuzzSharp.so" DestinationFolder="$([System.IO.Path]::GetFullPath('$(PublishDir)'))/bin/" />    
</Target>

Licenses

Library License
PdfReport.Core LGPLv2
iTextSharp.LGPLv2.Core LGPLv2 (It's not AGPL)
EPPlus.Core LGPLv2

Usage

Sample
How to use PdfRpt.Core library in an ASP.NET Core application?
How to create a report from a generic list?
How to add calculated fields to a PDF report?
How to use different data sources and then merge them together as a single report file?
How to manage and access PdfReport's events?
How to create a report from file system's images?
How to customize a report's header using HTML?
How to customize a report's cell template using HTML?
How to use data annotations to simplify defining column's properties?
How to create and add a new custom row between the available rows?
How to create an inline custom cell's template
How to create an in-memory PDF report for ASP.NET applications?
How to create a Mailing Labels report?
How to create master-detail reports from one-to-many relationships?
How to create multi-columns reports?
How to create reports with dynamically created columns?
How to disable printing on a PDF file?
More samples ...

About

PdfReport.Core is a code first reporting engine, which is built on top of the iTextSharp.LGPLv2.Core and EPPlus.Core libraries

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages