The pronoun here is "him" and it's in the phrase "from him". It's neither a direct object (which is "a five-page letter" here) nor an indirect object (which would be "to someone).
It's following a preposition "from" so the correct answer is B- oobject of a preposition.