Recommend a free PDF developer's library for C#

Anonymous
2020-12-25T19:45:22.387+00:00

I'm using VS 2017 CE, C#, and WinForms on a non-commercial application that adds and deletes pages from PDFs. The added pages are created with minimal text and no drawing or graphics.

I've been using iText7, and it's great, but it has far more power than I need, it's larger than I would like, and I find it hard to use.

I know there are other libraries. I just found out about Debenu PDF, which has a free lite version.

I'm looking for basic PDF editing, lightweight footprint, good documentation, and yes, free. What have you used?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,834 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,276 questions
{count} votes

7 answers

Sort by: Newest
  1. Priyadarshi, Prashant 0 Reputation points
    2023-07-17T16:53:52.96+00:00

    Recently I Came across QuestPDF Library https://www.questpdf.com/

    it's Awesome and easy to use .

    0 comments No comments

  2. victoria9960323 0 Reputation points
    2023-04-11T08:04:58.98+00:00

    If the PDF libraries could not meet your needs, contact ComPDFKit: https://www.compdf.com/ Free PDF Library:

    1. iTextSharp: A popular library for creating and manipulating PDF files in C#. You can download it from NuGet or from the iTextSharp GitHub page: https://github.com/itext/itextsharp/
    2. PDFSharp: Another open-source library for creating and modifying PDF files in C#. It supports a wide range of features and is easy to use. You can download it from NuGet or from the PDFSharp GitHub page: https://github.com/empira/PDFsharp/
    3. Spire.PDF for .NET: A free PDF library that allows developers to create, edit, and manipulate PDF documents in C#. It also provides support for converting PDF files to other formats such as Word, Excel, and HTML. You can download it from the Spire.PDF for .NET website: https://www.e-iceblue.com/Introduce/pdf-for-net-introduce.html
    4. PDF Clown: An open-source PDF library for C# that provides a range of features, including support for creating, editing, and merging PDF files. You can download it from the PDF Clown GitHub page: https://github.com/stefanodallaglio/pdf-clown
    0 comments No comments

  3. Russell James 1 Reputation point
    2023-02-15T15:27:44.9366667+00:00

    I need PDF Book for C# programming 2019 modified edtion


  4. DotNetDeveloper 6 Reputation points
    2022-03-10T23:17:49.13+00:00

    Hello,

    I would recommend a free PDF developer's library for C# PDFFlow for your needs. You basically create PDF documents from scratch with it. It supports repeating headers, automatic page numeration, multi-page spread tables and many other layouting options.
    It is lightweight and fully documented.
    Also, many samples of business documents built using this library are located in a repo (PDF.Flow.Examples), I haven't seen that much from other PDF generating libraries. There are also how-to-build articles for each sample, which definitely might help you get going.

    Your first PDF you can create with just a few lines of code:

     var section = DocumentBuilder.New().AddSection();
     section
         .AddParagraph("Hello World!").SetFontColor(Color.Red)
     .ToSection()
         .InsertNewPage()
         .AddParagraph("This is another page inserted")
     .ToDocument().Build("Hello World.pdf");
    

    As you can see, there is a method InsertNewPage() which can be called at any moment.
    I hope, this is what you were looking for.

    Also, this library automatically creates new page when current page is finished, so the content is continuing at the next page. This is very comfortable, so developer don't waste time for this.

    1 person found this answer helpful.

  5. Arun 1 Reputation point
    2022-03-10T04:41:43.447+00:00

    You can use Syncfusion PDF Library. Using this library, you can also add text, images, graphics, or shapes to update a PDF. This .NET PDF library is designed to work easily with edit or modify PDF files and integrate seamlessly in your applications.

    https://www.syncfusion.com/pdf-framework/net/pdf-library/edit-pdf.

    The whole suite of controls is available for free (commercial applications also) through the community license program if you qualify. The community license is the full product with no limitations or watermarks.

    https://www.syncfusion.com/products/communitylicense

    Note: I work for Syncfusion.