Update pdf_functions_impl.php

Bugfix.