Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
Please note that Canonical tags cannot be added to attachment files like PDFs, images, and videos as they can only be added to HTML web pages.
However, it is completely fine if Google Search Console cannot detect a canonical on your PDF URLs as well.
Instead of directly linking to PDF files, you can create a new post for each PDF and then embed the PDF within that post. In this way, you can easily add or change a canonical tag that way.
Moreover, to apply the canonical to your PDFs, you may need to apply it directly to your header file using rel=”canonical” HTTP header instead:
https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls?hl=en&visit_id=638308811598157716-3283038165&rd=1#rel-canonical-header-method
You can also check this helpful article to achieve that using .htaccess method.
Hope that helps.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.