PDF saving with mapping

4 posts, 0 answers
  1. Katelyn
    Katelyn avatar
    2 posts
    Member since:
    Oct 2020

    Posted 19 Oct 2020 Link to this post

    I'm currently trying to use kendo-react-pdf to save a pdf of a component. While using a pdf container does create a pdf with the objects inside, the mapped objects within the container are not included in the pdf. Any thoughts on how to get the mapped components within the PDF container to show up on the pdf that is created?
  2. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 20 Oct 2020 Link to this post

    Hello, Katelyn,

    Could you please share more details on these mapped objects which are missing from the PDF?

    Sharing an example, or at least a screenshot of the page and the PDF with the missing element will help us better understand the scenario

    Regards,
    Stefan
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

  3. Katelyn
    Katelyn avatar
    2 posts
    Member since:
    Oct 2020

    Posted 20 Oct 2020 in reply to Stefan Link to this post

    Yes! So I am using a Konva canvas and mapping components (URLImages) to the canvas. The PDFContainer wraps the entire canvas, but whenever I create the pdf, only a blank canvas appears, with none of the URLImages. I have attached images of what is included in the PDFContainer, as well as the URLImage component, which relies on the Konva Image component. Additionally, I attach a photo of what the canvas should look like, after images are on the canvas on the webapp. However, when I create the pdf, as you can see, it is blank and none of the images show up.
  4. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 21 Oct 2020 Link to this post

    Hello, Katelyn,

    Thank you for the additional details.

    I can suggest checking the PDF export limitations list to see if one of them is not affecting the results:

    https://www.telerik.com/kendo-react-ui/components/drawing/limitations-browser-support/

    There are limitations connected to images and SVG exports.

    Regards,
    Stefan
    Progress Telerik

    Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Back to Top