plangrid / pdf-annotate

Pure-python library for adding annotations to PDFs
MIT License
195 stars 45 forks source link

Refactor PDF command classes. #40

Closed tmlippman closed 5 years ago

tmlippman commented 5 years ago

Replace namedtuple inheritance with metaclasses and add a COMMAND class attribute to all PDF commands. We'll use this to implement content-stream parsing: taking in a string of PDF commands and returning a list of PDF command instances.

tmlippman commented 5 years ago

@mjbryant the parsing stuff isn't here yet, clearly.