CSV logic removed from PDF generator