Expression qtwidget.newpdf(w,h,filename) returns a Lua table that serves as a drawing port descriptor. Drawing operations will be output into the PDF file filename. Arguments w and h represent the initial size of the coordinate system.