unbreak -register-for-pdf (regression from commit 03941ec8cb665dadfdb91e0ca01b8c1c64f3a472)