Can the gpt-4 model answer questions from a pdf or document?

Do I need my code that uses the gpt-4 model to be able to answer questions from a pdf?

How do I make this work?