Potential fix for PDF, PS, and SVG. [1660]

Please hit this one very hard, as I'm kinda hesitant about the validity
of the changes.