WebKit Authentication Error on PDF conversion

  • 1 June 2016
  • 1 reply
  • 1 view

Badge +1

Hi All,

 

When saving a form as a PDF, using the 'Save as PDF' control, I get the following error: 

The PDF could not be saved.
 
  • Type:
    SourceCode.SmartObjects.Client.SmartObjectException
  • Message:
    Failed to convert HTML to PDF.
    Failed to convert URL to PDF.
    Conversion error: WebKit Authentication error.
  • 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 context)

 

Does anyone have a solution for this? The PDF Converter smart object is working correctly when it's fed a string of HTML, so I'm satisfied it's actually working. Is it indicating that the K2 Service account doesn't have web access to the K2 web with the forms? 

 

Thanks,
Jarrod


1 reply

Badge +5

HI,

 

 

Have you tried logging into the K2 blackpearl server as K2 service account, start your browser and access the desired form url? This should be working and it should not be prompting you for the authenticaiton to load the Form (meaning to say, your site should be in the "Intranet" security zone).

 

If your K2 service account can load up the form from within the K2 backpearl server without issue, then you will need to try turning WebKit option to false in the service instance.

 

 

JK.

Reply