I'm looking for a solution to display some of my PDF files with a viewer.

I found many solutions for Drupal 7 but not yet for Drupal 8.

Is there any module or open source solution to display PDFs in a Viewer ?

1 Answer 1


You can use the Embedded Google Docs Viewer module for that

Drupal 8

This module provides a formatter for the File field type. This formatter presents the file as a fully rendered object within a web page - i.e. it displays the contents of the file as appropriate to its filetype (Adobe Acrobat .pdf, Microsoft Word .doc/.docx, Microsoft Excel .xls/.xlsx, Microsoft Powerpoint .ppt/.pptx), using the Google Docs embedded rendering engine.

There are some other modules but those are in Dev version. Have a look at the Comparison of PDF viewer modules

  • 1
    Thank you for your help. I will not use any viewer after all <embed src="example.com/the.pdf" width="500" height="375" type='application/pdf'>
    – usethe23
    Oct 17, 2016 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.