Had the same issue and landed here, maybe this helps somebody.

I didn't find a way to embed the .pdf into a page but what I did was to add the .pdf to the wiki folder (like a normal page). Initially this didn't show up in the sidebar nor was it searchable from Github.

It is possible however to link it directly from other pages or a custom sidebar (see for example osquery's wiki for a nice sidebar). Clicking on the link allows you to download the .pdf (didn't find a way to preview it in the browser)

Answer from spygi on Stack Overflow
🌐
Reddit
reddit.com › r/gitlab › is it possible to download .pdf from gitlab pages?
r/gitlab on Reddit: Is it possible to download .pdf from gitlab pages?
December 20, 2020 -

Hi,

I am building a static website using Hugo and want to deploy it in gitlab pages. However, I would like to provide the download of a pdf document.

Is this possible to do using Hugo?

If not, how would you do it?

The pdf document would be hosted in the same gitlab repository.

Thanks!

🌐
Frankel
blog.frankel.ch › gitlab-pages-preview
GitLab Pages preview
June 4, 2023 - However, PDFs have issues on their own: a web "page" is potentially endless, while a regular PDF page cuts the former into standard pages. Splits can happen across diagrams. Besides, PDFs make distribution much harder. In this post, I’ll describe how I configured GitLab Pages to get the preview I want.
🌐
GitLab
gitlab.com › gitlab.org › #32305
PDF files attached to GitLab Wiki page on Gitlab.com do not appear in page list. (#32305) · Issues · GitLab.org / GitLab · GitLab
September 18, 2019 - PDF attachment should be displayed in uploads folder in page list structure ### Relevant logs and/or screenshots ![PDF_display_error](/uploads/ce2c47f965293a3f061cc967c9d2301f/PDF_display_error.JPG) ### Output of checks This bug happens on GitLab.com #### Results of GitLab environment info <details> <summary>Expand for output related to GitLab environment info</summary> <pre> (For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info
🌐
DEV Community
dev.to › nfrankel › gitlab-pages-preview-1h5g
GitLab Pages preview - DEV Community
June 8, 2023 - However, PDFs have issues on their own: a web "page" is potentially endless, while a regular PDF page cuts the former into standard pages. Splits can happen across diagrams. Besides, PDFs make distribution much harder. In this post, I'll describe how I configured GitLab Pages to get the preview I want.
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › deploy and release your application › gitlab pages
GitLab Pages | GitLab Docs
Pages also supports websites written directly in plain HTML, CSS, JavaScript, and Wasm. Dynamic server-side processing (like .php and .asp) is not supported. For more information, see Static vs dynamic websites. ... To use GitLab Pages, you must create a project in GitLab to upload your website’s files to.
🌐
GitLab
docs.gitlab.com
GitLab Docs
Learn how to use and administer GitLab, the most scalable Git-based fully integrated platform for software development.
🌐
Vipinajayakumar
vipinajayakumar.com › continuous-integration-of-latex-projects-with-gitlab-pages.html
Continuous Integration of LaTeX projects with GitLab Pages · vipinajayakumar
January 17, 2019 - You can use whatever script you would use to do the build on your computer - pdflatex, lualatex etc. In the deploy stage, we copy the PDF into a folder called public. Note that this job has to be named pages. This way GitLab knows that you want to use the GitLab Pages feature.
Find elsewhere
🌐
Unistra
demo.pages.unistra.fr › gitlab-pages.html
Publier avec GitLab Pages
mettre en ligne des pdf (articles de livres, de cours, d'énoncés d'exercices, etc.) construits à partir de sources (Tex, markdown, etc.) ... Pages permet de publier sur une URL qui contient un nom de projet ou d'équipe. Pour le projet GitLab projectname qui appartient à username ou groupname, ...
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › plan and track work › wikis
Wiki | GitLab Docs
Go to the page you want to export. In the upper right, select Wiki actions ( ), then select Print as PDF.
🌐
GitLab
gitlab.com › gitlab.org › #414691
Convert Individual Wiki Pages to PDF (#414691) · Issues · GitLab.org / GitLab · GitLab
June 7, 2023 - Problem to solve Our customers want to get the installation instructions separately, in PDF or DOCX format. I don't have to...
🌐
Medium
nfrankel.medium.com › gitlab-pages-preview-d582431ebf99
GitLab Pages preview. When I write Apache APISIX-related blog… | by Nicolas Fränkel | Medium
June 8, 2023 - However, PDFs have issues on their own: a web “page” is potentially endless, while a regular PDF page cuts the former into standard pages. Splits can happen across diagrams. Besides, PDFs make distribution much harder. In this post, I’ll describe how I configured GitLab Pages to get the preview I want.
🌐
GitLab
gitlab.com › gitlab.org › #10792
Markdown pages - export to PDF (#10792) · Epics · GitLab.org · GitLab
Our customers want to get the installation instructions separately, in PDF or DOCX format. I don't have to tell you how troublesome is holding such document aside. And...
🌐
Mathieu Passenaud
mathieupassenaud.fr › markdown-pdf
Document generator for Gitlab : from Markdown to PDF
November 16, 2020 - Document generation during a CI process : write it in Markdown and generate nice PDF
🌐
GitLab
gitlab.com › gitlab.org › #13932
Markdown pages - export to PDF (#13932) · Issues · GitLab.org / GitLab · GitLab
Our customers want to get the installation instructions separately, in PDF or DOCX format. I don't have to tell you how troublesome is holding such document aside. And...
🌐
GitLab
gitlab.com › gitlab pages examples
GitLab Pages examples · GitLab
Example websites hosted by GitLab Pages. Learn how to contribute a new Pages site.
🌐
HUGO
discourse.gohugo.io › support
Creating (HTML/PDF) assets for Hugo site with Gitlab CI - support - HUGO
August 23, 2019 - Hi! I’ve created a Gitlab CI job to use pandoc to create some HTML and PDF assets that I would like to deploy to my Hugo site hosted with Gitlab Pages. In .gitlab-ci.yml my job looks like this: assets: stage: deploy image: name: pandoc/latex:2.6 entrypoint: ["/bin/sh", "-c"] script: - apk ...