Update to non-deprecated api call.
Update to non-deprecated api call.

jeroencoumans/electron-pdf,jeroencoumans/electron-pdf,codecounselor/electron-pdf,fraserxu/electron-pdf,codecounselor/electron-pdf,fraserxu/electron-pdf