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

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

Комментарии • 43

  • @jabadu1800
    @jabadu1800 3 года назад +5

    Finally a PdfSharp tutorial on RUclips, 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:
      ruclips.net/video/gz_0Kb0lclQ/видео.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

      ruclips.net/video/C-yMypr_TdY/видео.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 2 года назад +1

      @@tauriuslitvinavicius Thanks alot...

  • @CordulaConrad-t4q
    @CordulaConrad-t4q 27 дней назад

    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..