added debug feature to pdf