Further improvements to PDF plugin.