For files like PDFs, there’s no way to place canonical tags from the site header mainly because there's no page area. In these circumstances, you’ll really need to use HTTP headers to set canonicals. Be sure your XML sitemap only features canonical pages. This helps serps explore the proper URLs https://bookmarksusa.com/story18810267/details-fiction-and-canonical-link-tag-not-found