PDf size and format validation