Cleaned up PersistenceAgent.as_pdf().

Renamed two variables.