Added one method to strip PG footer.