HT.PDF NuGet Package

The PDF Library .NET Core.

Export PDF with table, image, grid..with full format: Horizontal, Vertical, Border, Background Color, Bold...
public IActionResult PDF() {
var model = new PDFDocument(12, PageSize.A4);
model.AddCell(new PDFCell("PDF Library by HT Team") {
HorizontalAlignment = Element.ALIGN_CENTER,
Font = FontFactory.GetFont("Time new roman", 24f, 1),
Color = BaseColor.Pink
});
model.AddImage(7, "https://codeopinion.com/wp-content/uploads/2016/02/aspnetcore.png");
model.AddCell(new PDFCell("Asp.net Core"));
model.AddEmpty(1);
model.AddCell(new PDFCell("Facebook:") {
Colspan = 2
});
model.AddCell(new PDFCell("https://www.facebook.com/naddigitaldotcom") {
Reference = "https://www.facebook.com/naddigitaldotcom"
});
model.AddText(2, "Donate:");
model.AddText(0,"Paypal: [email protected]");
model.AddEmpty(1);
model.AddRow(new PDFRow(0) {
Colspans = new List<int> { 1, 7, 4 },
Contents = new List<string> { "No", "Description", " Note" },
});
for(int i = 1; i <= 3; i++) {
model.AddRow(new PDFRow(i) {
Colspans = new List<int> { 1, 7, 4 },
Contents = new List<string> { i + "", "Description" + i, "x" },
});
}
return File(model.Export(), "application/pdf");
}.




Got any HT.PDF Question?





Info

Version: 6.0.6
Author(s): HT
Last Update: Wednesday, June 15, 2022
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/HT.PDF


Install
Install-Package HT.PDF
dotnet add package HT.PDF
paket add HT.PDF
HT.PDF Download (Unzip the "nupkg" after downloading)

net5.0 netcoreapp3.1


Tags



STATS

must-have-score

.3

avg-downloads-per-day

5

days-since-last-release

681