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

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Blazor course:
    learn.conficienssolutio.com/c...
    Blazor, APIs, SQL server and more, in one course:
    learn.conficienssolutio.com/c...
    Stripe course (Using Blazor):
    learn.conficienssolutio.com/coursepreviewpage/94c08051-fb80-4042-816b-4533048df218?refid=ytbpdfsharp
    API development using C#:
    learn.conficienssolutio.com/c...
    TCP, UDP, WebSockets and more:
    learn.conficienssolutio.com/coursepreviewpage/33c08051-fd50-4042-816b-4533048df283?refid=ytbpdfsharp
    Taurius on SkillShare:
    www.skillshare.com/r/user/tau...
    Support this channel and find great deals on patreon:
    / taurius
    Find courses here: learn.conficienssolutio.com/previewindex?refid=ytbpdfsharp
    Segments:
    0:00 Introduction
    1:13 Nuget and setup
    5:06 Basic implementation
    12:40 List and more
  • Věda a technologie

Komentáře • 44

  • @jabadu1800
    @jabadu1800 Před 3 lety +5

    Finally a PdfSharp tutorial on CZcams, Thank you! Please more 😇

  • @tiendang5149
    @tiendang5149 Před 2 lety

    many thanks, I hope it had more

  • @alirezaar875
    @alirezaar875 Před 2 lety

    U r Good Broooo♥️

  • @JustUpWake
    @JustUpWake Před rokem

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

  • @hintsoftware
    @hintsoftware Před 2 lety

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

  • @miryammerchanleon7073
    @miryammerchanleon7073 Před 2 lety

    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?

  • @patwis
    @patwis Před 2 lety

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

  • @wellington18m
    @wellington18m Před rokem

    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

  • @shneorBachar
    @shneorBachar Před rokem

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

  • @hugochavez6170
    @hugochavez6170 Před 2 lety +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 Před 2 lety

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

  • @aaronsmith2611
    @aaronsmith2611 Před 3 lety

    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  Před 3 lety +1

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

  • @wolfel3822
    @wolfel3822 Před 3 lety +1

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

    • @tauriuslitvinavicius
      @tauriuslitvinavicius  Před 3 lety

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

  • @abdouldia1605
    @abdouldia1605 Před rokem

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

  • @RN-sx5mv
    @RN-sx5mv Před 2 lety

    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  Před 2 lety

      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.

  • @assss0102
    @assss0102 Před 2 měsíci

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

  • @twoshady518
    @twoshady518 Před 2 lety

    what about PDFSharpCore ?

  • @Unicorn-rj6go
    @Unicorn-rj6go Před 2 lety +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  Před 2 lety +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 Před 2 lety +1

      @@tauriuslitvinavicius Thanks alot...

  • @wayneunited59
    @wayneunited59 Před 3 lety

    Hi Taurius interesting video would it be possible to get the source code for this project. im trying to implement something similar in a WPF application.

  • @adelmourad8024
    @adelmourad8024 Před 3 lety

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

    • @eka528
      @eka528 Před 2 lety

      how to do it?

  • @tayyabaliravian
    @tayyabaliravian Před rokem

    Can I get github repo for it?

  • @vijayakumarg4770
    @vijayakumarg4770 Před 2 lety

    Can you share source code??

    • @fiji895
      @fiji895 Před 2 lety +1

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

  • @xyksnk2390
    @xyksnk2390 Před rokem

    What about ironPDF?

    • @yohanespradono5224
      @yohanespradono5224 Před 23 dny

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

  • @habibalnoman845
    @habibalnoman845 Před 9 měsíci

    is PdfSharp free to use?

    • @tauriuslitvinavicius
      @tauriuslitvinavicius  Před 9 měsíci

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

  • @DeepuMathewgoldeneye
    @DeepuMathewgoldeneye Před 3 měsíci

    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 Před 2 měsíci

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

  • @PersonalDevelopment-JMO

    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  Před 3 lety +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.