quartzdrawing pdf helpers