How to Generate PDF in C# (.NET 5) using PDFsharp
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
Finally a PdfSharp tutorial on CZcams, Thank you! Please more 😇
many thanks, I hope it had more
U r Good Broooo♥️
Please consider making a companion video to this, how to read text using PDFSharp
can you also explain header, footer, different papersizes etc for PdfSharp ?
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?
Hi!
Is it possible to set superscript using PdfSharp library?
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
How can I enable writing in a language other than English?
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?
I've found it useful to create a MS Word doc then convert it to PDF, which can be modified.
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.
czcams.com/video/C-yMypr_TdY/video.html
You only need to execute that one method and it will be generated
Hi May I know whether I can print for my form as PDF?(including all the label, textbox, graph)
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
Hi @tauriuslitvinavicius. Thanks for this videao. I wanted to know how to display a pdf file on a bootstrap modal view using pdfsharp. Thanks!
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
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.
Arial works well, but the Korean font NanumGothic does not work.. Doesn’t Korean language support it?
what about PDFSharpCore ?
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....
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
@@tauriuslitvinavicius Thanks alot...
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.
The source code is always available on Patreon
www.patreon.com/taurius
HTML to pdf with the help of Razor to render stuff is the best
how to do it?
Can I get github repo for it?
source code for videos can be found on patreon
Can you share source code??
he's barely coded anything, it would be quicker for you to just type it yourself...
What about ironPDF?
$750 for single developer. I am using itext, syncfusion, and questpdf which are free.
is PdfSharp free to use?
From website: PDFsharp and MigraDoc Foundation are published Open Source and under the MIT License and are free to use
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
Did you manage to resolve the issue with font not found? I am facing the same issue..
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?
None that I can think of... Once you export, you get a file, so after that you can do whatever you want with it.