writedot pulled out of writepdf