HT.PDF by HT

<PackageReference Include="HT.PDF" Version="5.0.1" />

.NET API 122,368 bytes



Legend

  •  Assembly
  •  Namespace
  •  Class
  •  Interface or Abstract Class
  •  Static Class
  •  Struct
  •  Enum
  •  Delegate
  •  Grayed out == non-public

 HT.PDF 5.0.1

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"); }

<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
  <metadata>
    <id>HT.PDF</id>
    <version>5.0.1</version>
    <authors>HT</authors>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <license type="expression">MIT</license>
    <licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
    <icon>net-5.png</icon>
    <description>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&lt;int&gt; { 1, 7, 4 },
        Contents = new List&lt;string&gt; { "No", "Description", " Note" },
      });
      for(int i = 1; i &lt;= 3; i++) {
        model.AddRow(new PDFRow(i) {
          Colspans = new List&lt;int&gt; { 1, 7, 4 },
          Contents = new List&lt;string&gt; { i + "", "Description" + i, "x" },
        });
      }
      return File(model.Export(), "application/pdf");
    }</description>
    <tags>HT PDF</tags>
    <dependencies>
      <group targetFramework=".NETCoreApp3.1">
        <dependency id="iTextSharp.LGPLv2.Core" version="1.7.0" exclude="Build,Analyzers" />
      </group>
      <group targetFramework="net5.0">
        <dependency id="iTextSharp.LGPLv2.Core" version="1.7.0" exclude="Build,Analyzers" />
      </group>
    </dependencies>
  </metadata>
</package>