Skip to content

Certificate PDF outputs loose their fonts and background #95

@MathewBiddle

Description

@MathewBiddle

When converting the svg's to pdf's we loose the fancy fonts and background.

SVG:
image

PDF:
image

There are ways to embed fonts into svg, but I haven't figured it out. I think the trouble is Adobe only comes with 12 fonts by default.

Will need to fiddle with this function to make it work:

def svg2pdf(fname):
drawing = svg2rlg(fname)
outname = fname.replace(".svg", ".pdf")
renderPDF.drawToFile(drawing, outname)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions