AW: [reportlab-users] cmyk-images
Robin Becker
robin at reportlab.com
Fri Apr 8 05:07:31 EDT 2005
manuela kiesenhofer - next gmbh wrote:
........
> from reportlab.pdfgen import canvas
> from reportlab.platypus import Image
> from reportlab.lib.units import cm
>
> # set pdf-filename
> canvas = canvas.Canvas("cmyk_test.pdf", bottomup=1)
>
> # fill pdf
>
> # logo
> # try one way
> canvas.drawImage('data/meiseleder_balken_cmyk.jpg', x=0*cm,y=27*cm,
> width=6*cm, height=1.5*cm)
>
> # try another way
> IMG = Image('data/meiseleder_balken_cmyk.jpg', width=6*cm, height=1.5*cm)
> w,h = IMG.wrap(6*cm, 1.5*cm)
> IMG.drawOn(canvas,0*cm, 25*cm)
>
> # done
> canvas.showPage()
> canvas.save()
>
..... first way looks fine for a direct draw to canvas.
I checked and that should work in 1.20. Can you send me a sample jpeg. I will
have a look and see what the code produces in PDF.
--
Robin Becker
More information about the reportlab-users
mailing list