Home forums Using CanvasJS export several charts to pdf

This topic contains 4 replies, has 2 voices, and was last updated by  Daniel Silva 2 years, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6451

    Daniel Silva
    Participant

    I was asked to export the reports to pdf and my initial idea was to use PhantomJS, but it has a problem with low DPI and all images are blurry.

    Just found jsPDF and it look’s great but the process is more manual.

    Anyone has other ideas?

    #6453

    Anjali
    Participant

    jsPDF seems like the best option according to us. May I know what you mean by process is more manual?

    #6462

    Daniel Silva
    Participant

    Is not possible to export the html and canvas keeping the styling.
    I have to convert the charts using toDataURL, and try to replicate the size,position.

    Also the image resolution on the pdf is very low, they get very blurry.

    • This reply was modified 2 years, 4 months ago by  Daniel Silva.
    #6474

    Anjali
    Participant

    Hi,

    In case you are going to use toDataUrl, then I just want to let you know that you need to convert first canvas element present inside the container.

    Regards,
    Anjali

    #6477

    Daniel Silva
    Participant

    I noticed that 🙂
    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.