Skip to content
Discussion options

You must be logged in to vote

A simple script to create an example PDF by Matplotlib:

import ezdxf
from ezdxf.addons.drawing.matplotlib import qsave

doc = ezdxf.new()
msp = doc.modelspace()
msp.add_text("TEXT")

qsave(msp, "text.pdf")

If you open the PDF with a PDF editor or a vector graphic editor, you will see that Matplotlib (as we use it) exports text as path objects. This takes up more space, but also does not require embedding font files. This is the current status of implementation and it will not change in the future either.

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
5 replies
@akantifirst
Comment options

@mozman
Comment options

@akantifirst
Comment options

@mozman
Comment options

@mbway
Comment options

Answer selected by akantifirst
Comment options

You must be logged in to vote
4 replies
@akantifirst
Comment options

@mbway
Comment options

@mozman
Comment options

@mozman
Comment options

Comment options

You must be logged in to vote
3 replies
@ascaron37
Comment options

@mbway
Comment options

@ascaron37
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants