Error happens when trying to convert form to PDF form