Why I'm receiving error for PDF submission?