Drawing Library/PDF with column-count > 1

1 Answer 64 Views
Drawing API
Hermann
Top achievements
Rank 1
Hermann asked on 29 Dec 2021, 04:23 PM

Hello,

I have a problem using the drawing library for creating PDFs with blocks being styled with a column-count style sheet being set to something other than 1 - it seems as if the drawing library is erroneously taking into account the sum of of all columns height instead of the real height when placing the output in a PDF, and thus leaving lots of blank space on the pages.

A working example can be found at Kendo UI Snippet | Kendo UI Dojo (telerik.com) (based on the page templates example)

Is this a known problem, am I missing something or is there any way/workaround to fix this?

Thanks & kind regards,

Hermann

 

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 31 Dec 2021, 10:08 AM

Hello Hermann,

I am afraid that when using the column-count CSS rule, the Kendo drawing logic could not calculate properly the position where pages should be automatically broken. As you have correctly observed, the break will be placed as if the content is placed in only one of the columns. So far this is a limitation of the drawing calculation logic and we are not aware of a viable workaround for that.

Regards,
Veselin Tsvetanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Drawing API
Asked by
Hermann
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or