Skip to content

Download image as PDF #2

@irisTa56

Description

@irisTa56

In plotly.js/src/snapshot/download.js, Promise returned by toImage() resolves SVG data i.e. result passed to fileSaver() is SVG data if opts.format = 'svg'.
So, modification of the result before passing it to fileSaver() is a possible way to make PDF data.

For making PDF data, the below library might be useful:

https://github.com/yWorks/svg2pdf.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions