No ratings

Cannot save a PDF file in the form




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





Labels: (1)
Version history
Last update:
‎08-20-2021 04:29 PM
Updated by:
Contributors