PDF plugin: fix what I have broken about cross-page selections in my previous commit.