write an application to the principal pdf