The override on _post_pdf should only be triggered when there is only one record. The if statement was faulty.