Code Fix: Generating a PDF with a K2 Workflow renders the PDF incorrectly

  • 16 February 2021
  • 0 replies
  • 20 views

Badge +9
 

Code Fix: Generating a PDF with a K2 Workflow renders the PDF incorrectly

KB003058

PRODUCT
K2 Five 5.2
K2 Five (5.2) Fix Pack 27

 

Issue Description

When generating a PDF with a K2 Workflow after an IISReset the PDF renders incorrectly. Only a small margin on the left-hand side of the A4 page is being generated, the rest of the page towards the right is blank. This results in the PDF rendering as if squished into a small column or bar on the left-hand side of the page.

Resolution

  1. Ensure you have K2 Five (5.2) installed.
  2. Download the K2 Five (5.2) FP27 from K2 Partner and Customer Portal.
  3. Install the K2 Five (5.2) FP27 to apply the fix.
  4. Refresh the browser cache.

Considerations

Please change the warmUpPDFCall setting to “true” for the PDF Converter Service Instance within the K2 SmartObject Service Tester Tool. 

Then add the following setting in the appsettings section of the K2Hostserver.exe.config file:

<add key="SourceCode.SmartObjects.Services.PdfConverter.WarmupConversionDelay" value="20" /> 

Please ensure an IISReset & K2 Host Server restart is performed once added to the K2Hostserver.exe.config file.

 


0 replies

Be the first to reply!

Reply