Adding a pdf file to a basic page

Hi,
Is it possible to add a pdf file to a basic page ?

Hi there

If you have a PDF file you would like to share on a Drupal page, you can choose to add it as an attachment which would then make it downloadable at the bottom of a page. If the PDF is rather large, it probably makes more sense to put it on CERNBox and otherwise include a shareable link on your Drupal website.

Thanks!

Thanks,

But is it possible to add it without it being a the bottom ?

Hi again

How would you like the PDF to be displayed, exactly?

Thanks!

I would like to be able to download it under a image (where the link is)

Hi again

Understood; in that case I propose simply uploading your PDF using WebDAV (see https://drupal.docs.cern.ch/development/webdav-client for using a client, and https://drupal.docs.cern.ch/development/access-via-webdav if you do not already have your WebDAV password). I would recommend adding the PDFs under the files folder. You could consider creating a subfolder named slides such that when you share the link, it becomes https://<website>.web.cern.ch/sites/default/files/slides/<name_of_file>.pdf.

Thanks!

In your Drupal 10, you can:

  • create a content type
  • add a “File” field to the content type (extension:pdf, file upload)
  • create a new node
  • attach a pdf file
  • copy the link of the uploaded file
  • use that link into the body html to build a link

Note:

  • you can hide uploaded file from the bottom of the page (content type > field setting)
  • use the core layout builder module for more complex setup