HT.PDF
5.0.7.15
See the version list below for details.
dotnet add package HT.PDF --version 5.0.7.15
NuGet\Install-Package HT.PDF -Version 5.0.7.15
<PackageReference Include="HT.PDF" Version="5.0.7.15" />
paket add HT.PDF --version 5.0.7.15
#r "nuget: HT.PDF, 5.0.7.15"
// Install HT.PDF as a Cake Addin #addin nuget:?package=HT.PDF&version=5.0.7.15 // Install HT.PDF as a Cake Tool #tool nuget:?package=HT.PDF&version=5.0.7.15
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: anhduc1403@gmail.com");
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");
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- iTextSharp.LGPLv2.Core (>= 1.7.1)
-
net5.0
- iTextSharp.LGPLv2.Core (>= 1.7.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.