Copilot
Your everyday AI companion
    Upvotes13edited May 14, 2019 at 6:53

    Add Namespace:

    using iTextSharp.text;
    using iTextSharp.text.pdf;

    code using c#:

    Document doc = new Document(PageSize.A4);
    var output = new FileStream(Server.MapPath("MyFirstPDF.pdf"), FileMode.Create);
    var writer = PdfWriter.GetInstance(doc, output);


    doc.Open();


    var logo = iTextSharp.text.Image.GetInstance(Server.MapPath("~/ABsIS_Logo.jpg"));
    logo.SetAbsolutePosition(430, 770);
    logo.ScaleAbsoluteHeight(30);
    logo.ScaleAbsoluteWidth(70);
    doc.Add(logo);

    PdfPTable table1 = new PdfPTable(2);
    table1.DefaultCell.Border = 0;
    Content Under CC-BY-SA license
    Was this helpful?
  1. Basic PDF Creation Using iTextSharp - Part I - C# Corner

    WEBApr 5, 2019 · create PDF with iTextSharp. iTextSharp. In this article series I use a web application to show how you can easily create a valid PDF document with just a few lines of code, using the tool iTextSharp which …

  2. Introduction to PDF Manipulation With iText (Formerly iTextSharp)

  3. People also ask
    Cannot retrieve latest commit at this time. iText is a PDF library that allows you to CREATE, ADAPT, INSPECT and MAINTAIN documents in the Portable Document Format (PDF): iText is used by Java, .NET, Android and GAE developers to enhance their applications with PDF functionality. iTextSharp is the .NET port.
    As not-so-standard there are solutions, with plugins for C#, as showed by print-css.rocks. The code declares a "new Document ()" and comments that this Document type is an "iTextSharp Document." This reference should be namespaced completely as "iTextSharp.text.Document ()".
    So, as part of a series of How To articles, here's how to get started using iTextSharp with code samples in C#. First thing to do is to install the Nuget package.. The dll will be copied to your Bin directory, and is now available to the web site or project.
    This critical transition occurred in version 4.1.6. Should our requirements demand an open-sourced, LGPL-licensed version of the library, the iTextSharp-LGPL library remains a viable choice for .NET Framework projects. Alternatively, for .NET Core and more recent projects, the iTextSharp-LGPL-core library can be used.
  4. GitHub - itext/itext-dotnet: iText for .NET is the .NET version of the ...

  5. Some results have been removed