problem with pdf printing

I tried the Kaleidoskope class and to use it to make PDFs, but can't
figure it out.

line 22 - 24
line 70 - 73

these are the important lines I think.