An honorific for the head of state of a republic; see president (definition 1).
A self-important but minor official.