Export doc as pdf