Fixing review comments:

* Don't use lstrip/rstrip in that way.
* Renaming things in the pdf postprocessor.