benjaminkott / bootstrap_package

Bootstrap Package delivers a full configured theme for TYPO3, based on the Bootstrap CSS Framework.
https://www.bootstrap-package.com/
MIT License
338 stars 207 forks source link

View/download PDF files #647

Closed hweckhardt closed 5 years ago

hweckhardt commented 5 years ago

Bug Report

Text & Media Element as PDF file is not shown in Frontend.

Prerequisites

[ ] Can you reproduce the problem on TYPO3 v8.7 LTS

Description

I have added a Content Element as Text & Media with a PDF file as Media. The thumbnail is shown in the backend, however the file (picture) is not shown in the frontend. In backend, under "Image manipulation" a message (field with blue background) is displayed, saying "No image dimensions could be determined.". I am using Typo3 9.5.4 and bootstrap_package 10.0.4. In a Typo3 installation without bootstrap_package this works like expected.

Steps to Reproduce

  1. [First Step] Add a PDF file as Text & Media to a page. The thumbnail of the PDF file is displayed in the backend.

  2. [Second Step] Display the page in frontend.

Expected behavior: [What you expected to happen]

The first page of the PDF file should be displayed, together with navigation symbols in the top-right corner of the screen (download, print). A scroll bar on the right side appears, and it is possible to scroll down the PDF file.

Actual behavior: [What actually happened] Only the header of the Text&Media element is displayed.

Versions

Typo3 9.5.4 bootstrap_package 10.0.4

You can get this information from executing composer show at the command line if your TYPO3 installation is composer based, otherwise the version number will be shown in the extension manager.

metiny commented 5 years ago

You have to expand the file:

typo3conf/ext/bootstrap_package/Resources/Private/Partials/ContentElements/Media/Type.html

You need a new case for PDF files (Typ 5):

You can copy the file in your sitepackage and expand
metiny commented 5 years ago

277 RFC: Feature/add pdf thumbnails to imagerendering

hweckhardt commented 5 years ago

I have the new case for PDF files (Type 5) to the partials file „ContentElements/Media/Type.html“ and it works perfect. Many thanks for your help!

Von: Metin Yilmaz [mailto:notifications@github.com] Gesendet: Dienstag, 19. März 2019 01:22 An: benjaminkott/bootstrap_package Cc: hweckhardt; Author Betreff: Re: [benjaminkott/bootstrap_package] View/download PDF files (#647)

You have to expand the file:

typo3conf/ext/bootstrap_package/Resources/Private/Partials/ContentElements/Media/Type.html

You need a new case for PDF files (Typ 5):

You can copy the file in your sitepackage and expand — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .