Article: ASP.Net Core Razor Pages: Export HTML string to PDF File
from my project in this line
PdfDocument pdfDocument = new PdfDocument(writer);
throw exception like this "Unknown PdfException." please cloud you help me.
Hi mohammednhne,
I have verified the sample. Its working.
Please try to install the itext7.bouncy-castle-adapter from nuget.
https://www.nuget.org/packages/itext7.bouncy-castle-adapter
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.