Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!

Qlik Sense - If a story/sheet/image/pdf export does not work and custom themes are used

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Benoit_C
Support
Support

Qlik Sense - If a story/sheet/image/pdf export does not work and custom themes are used

Last Update:

May 10, 2022 3:01:03 PM

Updated By:

Jamie_Gregory

Created date:

Jan 29, 2021 9:58:43 AM

Environment

  • Qlik Sense All versions

 

Description

In Qlik Sense, when if you export some stories to PDF/PPTX you might sometime have some issue like image no appearing. 

If the Printing logs doesn't help to figure out the issue it might be needed to add a feature in the Printing config file.

 

Resolution

Modify the printing config file to get more details in the System_Printing_rwr.txt log. 

  1. Edit C:\Program Files\Qlik\Sense\Printing\printing.exe.config
  2. Add below setting in file 
  3. <!-- 
    =====================================
        Sense rendering configuration
    =====================================
    -->​
    <add key="webrenderer-args" value="-l=trace" />
  4. Save and close the file. 
  5. Restart Qlik Sense services.
  6. Repeat on each node that has a running Qlik Sense Printing service. 

 

Troubleshooting

You will now have more information in log SERVERNAME_System_Printing_rwr.txt

In the below example, we do see there is a custom Theme (XTheme) and the format is invalid, and after that there is a timeout:

[2021-01-27 10:26:19.013001] successfully downloaded resource from GRPC, size in bytes: 59396, url: https://qlik.net/extensions/XTheme/Cond_Regular.ttf 
[2021-01-27 10:26:19.013966] PaintHandler::OnResourceLoadComplete url=https://qlik.net/extensions/XTheme/Cond_Regular.ttf  bytes=59396 response_status=OK 
[2021-01-27 10:26:19.068861] CefOnPaintReceivedTask img=worker_1_3w_imgidx_002_navid__rid_bdcc1e7a49dd43b5b2f0cf37074e3b3c state=WATERMARKED INVALID 
[2021-01-27 10:26:19.068868] CefOnPaintReceivedRwrCefTaskPixelWatermark::~CefOnPaintReceivedRwrCefTaskPixelWatermark 
[2021-01-27 10:26:19.089326] CefOnPaintReceivedTask img=worker_1_3w_imgidx_002_navid__rid_bdcc1e7a49dd43b5b2f0cf37074e3b3c state=WATERMARKED INVALID 
[2021-01-27 10:26:19.089331] CefOnPaintReceivedRwrCefTaskPixelWatermark::~CefOnPaintReceivedRwrCefTaskPixelWatermark 
[2021-01-27 10:26:42.461485] it timeout for js_timeout_counter=1 img=worker_1_1w_imgidx_000_navid__rid_3a88eaeb2d1d4b60a2c5d323195d325e 

 

In this example, the problem is coming from some box-shadow and/or margin and/or padding containing in this Theme.

Since the theme is the source of the issue, the solution if the you want to keep the dashboard style is to overwrite the problematic style entry with a following entry with increased specificity (more detailed CSS tag matches).

For instance, if the box-shadow element is the one causing the issue, you could add to the theme CSS the second section below:

 

 

 

.qv-object .qv-inner-object {

border: 1px solid lightgray;

box-shadow: 1px 1px 5px lightgray;

}

.printing-snapshot-content-v2 .qv-object .qv-inner-object,

.printing-live-content .qv-object .qv-inner-object {

-webkit-box-shadow: none;

-moz-box-shadow: none;

box-shadow: none;

}

 

 

 




This is an example which may work or may not work, you will need to analyze which styles causes export issues, box-shadow is one candidate.
The workaround is always based on this approach though, regardless of the style. The "side-effect" is that the exported PDF/image won't have the box shadow style.

Note that Printing is not guaranteed to work with custom themes (Qlik Sense does not provide printing support for custom themes).

Labels (1)
Version history
Last update:
‎2022-05-10 03:01 PM
Updated by: