fix typo in pdf functions