Skip to content

Path element cannot be exported to PDF #269

@cuixiping

Description

@cuixiping

Currently, only line, rect, ellipse, circle, text elements can be exported to pdf.
see jspdf.plugin.svgToPdf.js.

Any <path> element in the svg document cannot be exported to pdf.

The following svg document will be exported as an empty pdf.
2 path elements are ignored.

<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg">
  <path d="m100,229c191,97 173,-94 379,45" fill="#FF0000" stroke="#000000" stroke-width="5"/>
  <path d="m223,101a114,62 0 1 0 219,2" fill="#FF0000" stroke="#000000" stroke-width="5"/>
</svg>

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions