added paintCw which paints CW on graphics (without text) and use it in createPDF