Cannot save a PDF file in the form


Badge +9


 

Symptoms


Cannot save a PDF file in the form
 

Diagnoses


Hi,

We are experiening a technical issue that system cannot save the smartform to a PDF file in Production enviroment. It was working well but there is an issue now. The following is the error from the system. Please advise. Thanks.



The PDF could not be saved.


•Type: SourceCode.SmartObjects.Client.SmartObjectException
•Message: Failed to convert HTML to PDF.
One or more errors occurred.

•Source: SourceCode.Forms.Controls.Web
•Method Base
◦Member Type: Method
◦Name: ExecuteSaveAsPDFMethod
◦Module
■Scope Name: SourceCode.Forms.Controls.Web.dll
◦Declaring Type
■Full Name: SourceCode.Forms.Controls.Web.SaveAsPDFRequest
•Stack Trace: at SourceCode.Forms.Controls.Web.SaveAsPDFRequest.ExecuteSaveAsPDFMethod(SaveAsPDFRequest request)at SourceCode.Forms.Controls.Web.SaveAsPDFHandler.ProcessRequest(HttpContext

 

Resolution

We were able to resolve the issue by updating the PDF Converter Service Instance via SmartObject Service Tester as follows:
-Change Authentication Mode from Impersonate to ServiceAccount
-Change useWebkit from true to false
-Change serializeResources from true to false




 

0 replies

Be the first to reply!

Reply