I have a webpage namely - https://example.com/url/
I have generated a pdf with the same content of the above webpage namely - https://example.com/wp-content/uploads/2018/11/url.pdf.
I have given canonical tag to the https://example.com/url/ itself.
Will giving alternate tag to pdf in the web page will rank my pdf?
Now it is indexed but not ranking.
I need to rank both of them like when they search for without pdf keywords my web page should rank.
if they search with pdf my pdf should rank.
Is there any other way than alternate tag?
Please guide me.