Gitlab (as of v9.1) includes a pdf viewer. However pdf files from artifacts are still downloaded and not rendered within the browser.
Enable pdf viewer for artifacts.