# Render errors in generated PDF reports (Canvas)

**URL:** <https://discuss.elastic.co/t/render-errors-in-generated-pdf-reports-canvas/239353>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [June 30, 2020, 5:41pm UTC](https://discuss.elastic.co/t/render-errors-in-generated-pdf-reports-canvas/239353 "2020-06-30T17:41:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandbender](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandbender/32/66398_2.png) [@sandbender](https://discuss.elastic.co/u/sandbender)\
**Post date:** [June 30, 2020, 5:41pm UTC](https://discuss.elastic.co/t/render-errors-in-generated-pdf-reports-canvas/239353/1 "2020-06-30T17:41:27Z")

</div>

Hi,

When generating a PDF reports from Canvas, I came across two unpleasant render errors:

1. It appears that font choices are not being considered, which in the following case renders a customised chart unreadable. (Tried Open Sans and Helvetica Neue but the renderer insists on Lucida Grande...)

Canvas editor:

 ![Screenshot 2020-06-30 at 19.13.27](https://us1.discourse-cdn.com/elastic/original/3X/7/3/7342b92107eb50e6cae5a8763196ee7b67e1423c.png)

Generated PDF:

 ![Screenshot 2020-06-30 at 19.14.03](https://us1.discourse-cdn.com/elastic/original/3X/b/f/bf910946ce0c1c87c8dd63af47cd6ec8b9068186.png)

Here the expression, in case it provides clues:

```auto
    filters
    | essql 
      query="..."
    | pointseries x="count" y="message"
    | plot defaultStyle={seriesStyle bars="0.8" horizontalBars=true color="#d28f79"} legend=false xaxis=true yaxis={axisConfig position="right"} 
      font={font family="'Open Sans', Helvetica, Arial, sans-serif" size=12 align="left" color="#000000" weight="bold" underline=false italic=false}
    | render 
      css="
      .flot-x-axis {
        z-index: 1;
    }
    .flot-y-axis {
        transform: translate(-800px,0px);
        max-width: fit-content;
        white-space: nowrap;
    }" containerStyle={containerStyle opacity="1" padding="20px"}

```

1. The first element on every page of a rendered PDF seems to be selected (when being rendered in Chromium?), which is visible in the following screenshots by the fine turquoise line/frame.

Shape element:

 ![Screenshot 2020-06-30 at 19.34.09](https://us1.discourse-cdn.com/elastic/original/3X/2/5/25b7ac5f9634b1928d293ac80a836be00d0751a2.png)

Image element (from SVG):

 ![Screenshot 2020-06-30 at 19.35.46](https://us1.discourse-cdn.com/elastic/original/3X/2/e/2e0e260f6ce209cc59567262d6c46b4bf89b41ed.png)

In case there are any settings I could try to avoid these issues I'd be happy to hear about them (this Kibana instance is running on Elastic Cloud)!

Thanks, Christian

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 1, 2020, 3:49pm UTC](https://discuss.elastic.co/t/render-errors-in-generated-pdf-reports-canvas/239353/2 "2020-07-01T15:49:59Z")

</div>

@Catherine_Liu / @tims - can you please help ?

---

<div class="post-metadata">

**Author:** ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)\
**Post date:** [July 6, 2020, 4:39pm UTC](https://discuss.elastic.co/t/render-errors-in-generated-pdf-reports-canvas/239353/3 "2020-07-06T16:39:44Z")

</div>

Hey there Christian!

For the first issue, I believe that's due to what fonts are installed on the Cloud instance. The reporting job runs on the Cloud instance so it only has access to the fonts installed on that machine. I believe the Cloud team has identified this as an issue and I'm going to go ahead and follow-up with them about it. We're tracking this issue as a part of a Canvas PDF meta issue here: [https://github.com/elastic/kibana/issues/41405](https://github.com/elastic/kibana/issues/41405)

For the second issue, that is definitely a weird bug. I can reproduce but only when my element is in the exact top corner of the workpad. I've opened a bug report for that issue here: [https://github.com/elastic/kibana/issues/70830](https://github.com/elastic/kibana/issues/70830)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 3, 2020, 4:40pm UTC](https://discuss.elastic.co/t/render-errors-in-generated-pdf-reports-canvas/239353/4 "2020-08-03T16:40:05Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
