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
Incorrectly displays PREVIEW PDF file in popup
-
- Phoca Newbie
- Posts: 2
- Joined: 12 Mar 2025, 10:55
- Benno
- Phoca Hero
- Posts: 9697
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Incorrectly displays PREVIEW PDF file in popup
Hi,
Kind regards,
Benno
Your link returns an error 403Button Preview is located below the article: https://new.sostpoprad.sk/index.php/pekna-adresa
Kind regards,
Benno
-
- Phoca Newbie
- Posts: 2
- Joined: 12 Mar 2025, 10:55
Re: Incorrectly displays PREVIEW PDF file in popup
I moved to this address http://maslej-test.wz.sk/index.php/pekna-adresa
- Jan
- Phoca Hero
- Posts: 48714
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Incorrectly displays PREVIEW PDF file in popup
Hi, what exactly do you mean with incorrectly? When you switch to standard template (only for test), do you get the same problem?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 1
- Joined: 05 May 2025, 16:39
Re: Incorrectly displays PREVIEW PDF file in popup
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
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
- Jan
- Phoca Hero
- Posts: 48714
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Incorrectly displays PREVIEW PDF file in popup
Hi, testing now, it is OK in standard templates:

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

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
If you find Phoca extensions useful, please support the project