I have a href link to a pdf file that when clicked on it downloads. I want this to just open in a new page instead of downloading.
You can make the link open in a new window by adding target="_blank". The question if the PDF file is opened in the window or downloaded depends on the software the user has installed, i don't think it is possible to control that.
target="_blank"