Incorrectly displays PREVIEW PDF file in popup

Phoca Download - download manager
erikpp
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 12 Mar 2025, 10:55

Incorrectly displays PREVIEW PDF file in popup

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9697
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Incorrectly displays PREVIEW PDF file in popup

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Incorrectly displays PREVIEW PDF file in popup

Post 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
If you find Phoca extensions useful, please support the project
Sweden
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 05 May 2025, 16:39

Re: Incorrectly displays PREVIEW PDF file in popup

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Incorrectly displays PREVIEW PDF file in popup

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