I was told that in order to produce primers, the DNA sequences at the 3' end of the template strand must be known, and that these primers are complementary to 3' ends of the template DNA. 
However, that causes me confusion when I view the following image from my college class, which show that the primers anneal to the template DNA further down the strand:
[![PCR cycles][1]][1]


  [1]: https://i.sstatic.net/II1Zm.png