add pdf option for DUA
refactor pdf option