Can you recommend a PDF creation library in C#?

Mafiev Dev 1 Reputation point
2021-09-30T13:08:48.373+00:00

I'm about to start a new project and i will need to generate PDF files from C# code, what libraries do you recommend ?

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,206 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Castorix31 81,461 Reputation points
    2021-09-30T13:26:50.533+00:00

    itext7 is fine itext7

    0 comments No comments

  2. Michael Taylor 47,716 Reputation points
    2021-09-30T14:51:21.427+00:00

    There are plenty of PDF libraries available. I recommend you take a look at 3 of them and decide which one has the features (and cost) that fits your needs. Pay careful attention to licensing rules because Adobe PDF is a commercial format and many libraries charge a fee to use them in commercial apps.

    Things you should consider when deciding on a library (besides price):

    • Functionality (are you manipulating an existing PDF, generating a new one)
    • Support (how much support do you need and do you prefer dedicated paid support or free support)
    • Do you want a mature library that may be older/slower or the fastest library available even if it might not be fully stable

    iText7 (formerly iTextSharp) is probably one of the most popular libraries, is mature and has plenty of examples available for free. However it's licensing agreement changed between the (truly free) iTextSharp and iText7 (commercial) versions. Most of the older examples you'll see are for iTextSharp which is not compatible with the newer iText7. Furthermore if you are putting this into a commercial app it is not free anymore so you need to look at the cost if applicable to you.

    Here's a link to the same exact question you asked in this forum back in Dec 2020 so the answers should still be valid as well.

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more