Page 1 of 1

Incorrectly displays PREVIEW PDF file in popup

Posted: 12 Mar 2025, 11:33
by erikpp
I installed Phoca Download (J5) com_phocadownload_v5.0.10.zip and plugins plg_content_phocadownload_v5.0.0.zip and plg_editors-xtd_phocadownload_v5.0.0.zip. I use Joomla 5.2.5 and Apache 2.4 PHP 8.4.
When viewing a PDFhttps://www.phoca.cz/documentation/86-joomla/50 ... forum-post file in an article, it incorrectly displays PREVIEW of the PDF file as shown in the image.

https://imgur.com/a/LghC4bX

Button Preview is located below the article: https://new.sostpoprad.sk/index.php/pekna-adresa

Re: Incorrectly displays PREVIEW PDF file in popup

Posted: 12 Mar 2025, 12:02
by Benno
Hi,
Button Preview is located below the article: https://new.sostpoprad.sk/index.php/pekna-adresa
Your link returns an error 403

Kind regards,
Benno

Re: Incorrectly displays PREVIEW PDF file in popup

Posted: 12 Mar 2025, 18:15
by erikpp

Re: Incorrectly displays PREVIEW PDF file in popup

Posted: 17 Mar 2025, 17:12
by Jan
Hi, what exactly do you mean with incorrectly? When you switch to standard template (only for test), do you get the same problem?

Jan

Re: Incorrectly displays PREVIEW PDF file in popup

Posted: 05 May 2025, 16:45
by Sweden
Hi!

I have the same problem.
When previewing a PDF (doesn't matter what settings is set under Preview settings). I want the document to fill the intire modal box both width and/or height.

Where do I update the CSS for this? Even if I add width 100% when I try in the browser the PDF itself doesn't stretch or fill the intire width.

<iframe id="pdCategoryModalIframe" height="100%" frameborder="0" src="/dokumentpap/userupload/xxx/xxx xx.pdf" width="100%"></iframe>


Picture here: https://ibb.co/992YtX94


I want it like this: https://ibb.co/RpNWx13j

Re: Incorrectly displays PREVIEW PDF file in popup

Posted: 06 May 2025, 23:45
by Jan
Hi, testing now, it is OK in standard templates:

Image

Can you paste a link to your site, to directly test it there.

You can add own CSS code to the user.css which is located in your template (if not located there, it needs to be create there). In user.css you can then do CSS modifications for your whole website including Phoca Download part.

Jan