Follow this procedure to view pdf without downloading:
To access advanced settings, go to settings and then advanced settings. After that, go to site settings and then PDF documents. Disable 'Download PDF files instead of automatically opening them in Chrome' in PDF documents, as illustrated in the figure. Chrome will now open pdf files instead of downloading them, which is incredibly convenient
I hope this answer helps you to solve your query