Skip to main content
Nintex Community Menu Bar

I’m unable to generate the pdf using the smart object - pdf converter.

Error below is from the log:
/2025-04-15 19:35:04]4ERR]RHost:]:App:SourceCode.PdfConverter.Api]iCID:]:SID:]:Path:/api/v1.0/convert]tSrc:SourceCode.PdfConverter.Api.Middleware.ExceptionHandler]: System.AggregateException: One or more errors occurred. (Load_Error (-200) - ERR_CERT_COMMON_NAME_INVALID)
 ---> System.Exception: Load_Error (-200) - ERR_CERT_COMMON_NAME_INVALID
   at SourceCode.PdfConverter.Api.Converter.CefPdfConverter.LoadPage(ChromiumWebBrowser browser, Action`3 loadAction, String urlOrHtml, String baseUrl)
   at SourceCode.PdfConverter.Api.Converter.CefPdfConverter.GetPdfBytes(Action`3 loadAction, Func`2 readyAction, String urlOrHtml, String baseUrl)
   at SourceCode.PdfConverter.Api.Converter.CefPdfConverter.GetPdfBytesFromUrl(String url, String baseUrl)
   --- End of inner exception stack trace ---
   

 

Base on the error, it looks to be a certificate related:

ERR_CERT_COMMON_NAME_INVALID

Are you using a self-signed certificate?

Is the certificate from a trusted certificate authority?

Does the Common Name/Subject Alternative Names cover the binding/url that you are using to load the SmartForms?

If you browse to that same URL outside of the K2 server, does your browser indicate any certificate issue?


I tried another alternative using Save As PDF. However the pdf output was not ideal and weird. 

Below is my form:

This is using K2 5.8. Is this issue related to Fix pack 10? 
 

 


It looks like there were 2 code fixes relating to the PDF Converter functionality.

I would apply the latest fix pack and retest afterwards.

Make sure to create a K2 VM snapshot and K2 database backup in case you need to roll back.


I’ve downloaded latest Fix Pack 13, however the output of Save as PDF is the same. 

Below is a simple form created to test it. 

 

Here’s the output: 

 

Have tried different theme, it doesnt work as well. 


I manage to fix this by generating ssl cert for internal IP(Cert generated from local CA server)


Reply