Skip to content

SVG files without viewBox does not render #1999

@edwin177

Description

@edwin177

SVG files without viewBox defined (but height and width defined) do not render when using fit. If I manually add viewBox="0 0 width height", then it renders fine.

For now, I'm parsing the SVG node and appending viewBox manually if it's missing, before sending it to pdfmake.

on node
"pdfmake": "0.1.65",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions