fix cmd_pdf