Genti
Genti
Explore posts from servers
CC#
Created by Genti on 2/2/2024 in #help
CSHTML form to PDF File.
this was it i think
11 replies
CC#
Created by Genti on 2/2/2024 in #help
CSHTML form to PDF File.
iText.Kernel.Exceptions.PdfException
HResult=0x80131500
Message=Unknown PdfException.
Source=itext.kernel
StackTrace:
at iText.Kernel.Pdf.SmartModePdfObjectsSerializer..ctor()
at iText.Kernel.Pdf.PdfWriter..ctor(Stream os, WriterProperties properties)
at iText.Kernel.Pdf.PdfWriter..ctor(Stream os)
at DeclarationPdf.GeneratePdf(DeclarationModel model, String user) in C:\Users\genti\OneDrive\Desktop\DeklarimiPasuris-master\DeklarimiPasuris\Controllers\DeclarationPdf.cs:line 18
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at DeklarimiPasuris.Controllers.DeclareController.Convert() in C:\Users\genti\OneDrive\Desktop\DeklarimiPasuris-master\DeklarimiPasuris\Controllers\DeclareController.cs:line 344
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()

This exception was originally thrown at this call stack:
[External Code]

Inner Exception 1:
NotSupportedException: Either com.itextpdf:bouncy-castle-adapter or com.itextpdf:bouncy-castle-fips-adapter dependency must be added in order to use BouncyCastleFactoryCreator
iText.Kernel.Exceptions.PdfException
HResult=0x80131500
Message=Unknown PdfException.
Source=itext.kernel
StackTrace:
at iText.Kernel.Pdf.SmartModePdfObjectsSerializer..ctor()
at iText.Kernel.Pdf.PdfWriter..ctor(Stream os, WriterProperties properties)
at iText.Kernel.Pdf.PdfWriter..ctor(Stream os)
at DeclarationPdf.GeneratePdf(DeclarationModel model, String user) in C:\Users\genti\OneDrive\Desktop\DeklarimiPasuris-master\DeklarimiPasuris\Controllers\DeclarationPdf.cs:line 18
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at DeklarimiPasuris.Controllers.DeclareController.Convert() in C:\Users\genti\OneDrive\Desktop\DeklarimiPasuris-master\DeklarimiPasuris\Controllers\DeclareController.cs:line 344
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()

This exception was originally thrown at this call stack:
[External Code]

Inner Exception 1:
NotSupportedException: Either com.itextpdf:bouncy-castle-adapter or com.itextpdf:bouncy-castle-fips-adapter dependency must be added in order to use BouncyCastleFactoryCreator
11 replies
CC#
Created by Genti on 2/2/2024 in #help
CSHTML form to PDF File.
@Gramore let me see if i can find that error 1 sec
11 replies
CC#
Created by Genti on 2/2/2024 in #help
CSHTML form to PDF File.
even tho i installed all the right packages and tried it 100 times in all different ways
11 replies
CC#
Created by Genti on 2/2/2024 in #help
CSHTML form to PDF File.
@Gramore i kept getting some bouncy castle errors when i executed the code
11 replies