When the rel=“canonical” tag was introduced in 2009 it was quickly adopted by SEOs. Unfortunately, because the canonical tag resides in the HTML head you cannot insert it into non-HTML pages. Why is this a problem? If you have images or PDF documents that play an important role in your website, they can outrank HTML pages on your site.
For More Information Please Refer: