Error while trying to create a PDF form