bcbnz / pylabels

Python library to create PDFs for printing labels.
GNU General Public License v3.0
100 stars 40 forks source link

Long strings don't wrap to new line #15

Open JetUni opened 7 years ago

JetUni commented 7 years ago

The strings that we are writing to the labels are dynamic and we've run into the problem that they go off the label and don't wrap to a new line. This seems to be a limitation of the reportlab drawing, but the limitation here is that I can't use the great features of reportlab like the Paragraph and Table to draw on the labels in order to make them look how I need them to with long strings wrapped and such.

tomkcook commented 6 years ago

An answer on this would be really good. Is there some way to wrap text, or do we have to do it manually? The ReportLab documentation on the reportlab.graphics package is not very good (which I know isn't your fault, but it makes pylabels a bit hard to use).