I think borb
is pretty amazing for generating PDFs with Python
.
I'd love to use borb
to create documents to print on a thermal printer (fixed width, endless height of document). The documents have messages of different length thus the height of the document would need to be adjusted every time (so no blank space gets printed after the message).
Is there a way to determine the size/height of the content and to resize the page accordingly in borb?