Open fd opened 3 years ago
You can do it, but it would likely be a waste of time, see https://github.com/fschutt/printpdf/issues/73#issuecomment-712794370
I'll refactor the API properly in the next version anyway, so the PageRef
and LayerRef
classes will be removed.
Yeah I saw you wanted to do a rewrite in a few years (aka. not today). My immediate goals are:
Pdf{Document,Page,Layer}Reference
types and have the api use regular referencesThese changes could be a stepping stone to a more convenient v2 API.
ok, go ahead if you want
@fschutt Are you okay If I attempt to refactor the library such that
PageRef
andLayerRef
types actually use rust life times instead ofRc<>
? This would obviously be a breaking change but I believe it would more accurately communicate mutability and ownership of the referenced data.