bcbnz / pylabels

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

How do you put images inside the labels instead of just the background image? #21

Open shyamalschandra opened 3 years ago

shyamalschandra commented 3 years ago

How do you put images inside the labels instead of just the background image?

shyamalschandra commented 3 years ago

@bcbnz: Anyone there?

smsaladi commented 3 years ago

Try reportlab.graphics.shapes.Image and then add using .add as usual

xvxieweilai commented 2 years ago

for base examples use: label.add(shapes.Image(0, 40, width=60, height=80, path='temp.jpg'))

r89m commented 1 year ago

path can also be a PIL image object

shyamalschandra commented 1 year ago

@smsaladi & @xvxieweilai & @r89m: Thanks for your help! I will try it very soon!