How to Generate PDF in C# (.NET) using PDFsharp

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 43

  • @jabadu1800
    @jabadu1800 3 роки тому +5

    Finally a PdfSharp tutorial on UA-cam, Thank you! Please more 😇

  • @JustUpWake
    @JustUpWake Рік тому

    Please consider making a companion video to this, how to read text using PDFSharp

  • @assss0102
    @assss0102 8 місяців тому

    Arial works well, but the Korean font NanumGothic does not work.. Doesn’t Korean language support it?

  • @hugochavez6170
    @hugochavez6170 2 роки тому +2

    Thanks for the nice and helpful tutorial.
    I had a question. Is there any way to insert an image as background image to the existing document page?

    • @xyz4976
      @xyz4976 2 роки тому

      I've found it useful to create a MS Word doc then convert it to PDF, which can be modified.

  • @shneorBachar
    @shneorBachar 2 роки тому

    How can I enable writing in a language other than English?

  • @miryammerchanleon7073
    @miryammerchanleon7073 2 роки тому

    Hi! thanks for the tutorial. I have a question, I'm trying to implement the code and I am getting an ArgumentNullExeption on the GenericFontResolver stream variable. I have my own project name in it but I don't know why it is null. Why can this be happening?

  • @hintsoftware
    @hintsoftware 2 роки тому

    can you also explain header, footer, different papersizes etc for PdfSharp ?

  • @abdouldia1605
    @abdouldia1605 2 роки тому

    Hi @tauriuslitvinavicius. Thanks for this videao. I wanted to know how to display a pdf file on a bootstrap modal view using pdfsharp. Thanks!

  • @tiendang5149
    @tiendang5149 2 роки тому

    many thanks, I hope it had more

  • @patwis
    @patwis 2 роки тому

    Hi!
    Is it possible to set superscript using PdfSharp library?

  • @wolfel3822
    @wolfel3822 3 роки тому +1

    Hi May I know whether I can print for my form as PDF?(including all the label, textbox, graph)

    • @tauriuslitvinavicius
      @tauriuslitvinavicius  3 роки тому

      It's just like any other PDF file... In fact, I did try printing invoice generated by this example and it worked fine:
      ua-cam.com/video/gz_0Kb0lclQ/v-deo.html

  • @aaronsmith2611
    @aaronsmith2611 3 роки тому

    I think I have a decent idea of how to construct the PDf, the piece that I seem to be missing is how to trigger the pdf to be generated.

    • @tauriuslitvinavicius
      @tauriuslitvinavicius  3 роки тому +1

      ua-cam.com/video/C-yMypr_TdY/v-deo.html
      You only need to execute that one method and it will be generated

  • @Unicorn-rj6go
    @Unicorn-rj6go 3 роки тому +1

    page-break-before : always; page-break-after : always; not supported in pdfsharp...plz tell me what should i do? I wanted to move the HTML certain code to new pdf page....

    • @tauriuslitvinavicius
      @tauriuslitvinavicius  3 роки тому +1

      If you are looking for html to pdf conversion, perhaps you should take a look into one of the paid tools, such as hiqpdf.com

    • @Unicorn-rj6go
      @Unicorn-rj6go 3 роки тому +1

      @@tauriuslitvinavicius Thanks alot...

  • @CordulaConrad-t4q
    @CordulaConrad-t4q 28 днів тому

    Thank you sooo match!

  • @wellington18m
    @wellington18m 2 роки тому

    Hello therte. Thanks a lot for the video it is really useful. I was wandering if you could know how to export blazor form component with images to pdf. I really appreciate if you could give any help

  • @alirezaar875
    @alirezaar875 3 роки тому

    U r Good Broooo♥️

  • @Not-A-FatDad
    @Not-A-FatDad 3 роки тому

    Hi,
    Are there any issues involved with using this to create and fill out a form, upon button press, create pdf and send as email?

    • @tauriuslitvinavicius
      @tauriuslitvinavicius  3 роки тому +1

      None that I can think of... Once you export, you get a file, so after that you can do whatever you want with it.

  • @twoshady518
    @twoshady518 2 роки тому

    what about PDFSharpCore ?

  • @RN-sx5mv
    @RN-sx5mv 3 роки тому

    First i want to thank you for this awesome tutorial.
    I'm able to generate a blank pdf, but when it comes to use XFont is showing me the error "System.Drawing.Common is not supported on this platform."
    I'm pretty shure i've done everything you are showing on this tutorial but the error is still there.
    May you help me?
    Any advice will be gratefully accepted.
    Best regards
    ps. I'm in a net5.0 project with blazor wasm

    • @tauriuslitvinavicius
      @tauriuslitvinavicius  3 роки тому

      I don't think it will work on client-side Blazor, unfortunately that is the case for many default libraries in C#. Anything related to System.Drawing or handling image files does not really work.

  • @adelmourad8024
    @adelmourad8024 3 роки тому

    HTML to pdf with the help of Razor to render stuff is the best

    • @eka528
      @eka528 3 роки тому

      how to do it?

  • @tayyabaliravian
    @tayyabaliravian Рік тому

    Can I get github repo for it?

  • @Quantumflame137
    @Quantumflame137 2 роки тому

    What about ironPDF?

    • @yohanespradono5224
      @yohanespradono5224 6 місяців тому

      $750 for single developer. I am using itext, syncfusion, and questpdf which are free.

  • @habibalnoman845
    @habibalnoman845 Рік тому

    is PdfSharp free to use?

    • @tauriuslitvinavicius
      @tauriuslitvinavicius  Рік тому

      From website: PDFsharp and MigraDoc Foundation are published Open Source and under the MIT License and are free to use

  • @vijayakumarg4770
    @vijayakumarg4770 3 роки тому

    Can you share source code??

    • @fiji895
      @fiji895 2 роки тому +1

      he's barely coded anything, it would be quicker for you to just type it yourself...

  • @DeepuMathewgoldeneye
    @DeepuMathewgoldeneye 8 місяців тому

    if you are giving a tutorial you should at least be willing to answer the question for help. many in this comment ask problems while running the program. you didn't answer anything. i even have the same problem. when it comes to XFont ie.(No appropriate font found for family name "Arial" . implement IFontResolver so on....) an other error is you cannot draw on a page that is not owned by pdfdocument object

    • @mariovojnichajduk6947
      @mariovojnichajduk6947 8 місяців тому

      Did you manage to resolve the issue with font not found? I am facing the same issue..