produce selectable text when printing to PDF on Mac OSX

This patch was adapted from ariya/phantomjs#11509