What does Windows say is happening?
Enable the PrintService/ Operational events
Open Event Viewer
Applications and services
Microsoft
Windows
PrintService
The Operational events are not enabled by default so turn on this event level and execute your code again.
One other point, does the printer support the text datatype? It absolutely does not support PDF as a datatype.
If you call the driver, then the driver should be converting the text or PDF into PCL which the printer supports.