Week 8
CS50 Shirtificate
A PDF library the spec names. The program asks for a name and draws a shirt with that name on it.
A name, typed when the program asks.
A PDF certificate.
The question, more slowly
The question is: ask for a name, then make a PDF that looks like the certificate in the spec. A shirt image sits on the page, and the name is printed on the shirt. The spec names the PDF library and the shirt file.
Creating the page, placing the image, and placing the text are three steps. Do them in that order in your notes. Text placement is coordinates on the page. The spec shows the size and the color.
People get a PDF with the name in the corner because the coordinates are the page corner, not the shirt. Compare your page with the spec's picture before you submit.
Before you code
Read the spec's library page for how a page is created, then how text is placed. Do those as two separate notes before you combine them.