work on pdf and CSV