The working directory of the process when you start it by double-clicking is probably different than when you are logged in at the terminal, so there is no "this doc.pdf" in the current directory. Use an absolute path name in the script:
#!/bin/bash
lpr /path/to/"this doc.pdf"