Error when exporting form in pdf