You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#102972 How can I show a pdf in the latest version of the jce?

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Tuesday, 20 June 2023 20:00 BST

Monique Jansen
How can I show a pdf in the latest version of the jce?

Ryan
This is best done with the File Manager, which can either create a link to the pdf, or embed it in the article using an iframe.

To do this, click on the File Manager button (if the button is not in your editor toolbar, you can add it in Editor Profiles -> Features & Layout. Please see - https://www.joomlacontenteditor.net/support/faq/editor/pro-buttons-missing-after-upgrade)

https://cdn.joomlacontenteditor.net/tmp/102972-how-can-i-show-a-pdf-in-the-latest-version-of-the-jce.jpg

Select your pdf file by clicking on it's name, then set the Format option to IFrame.

https://cdn.joomlacontenteditor.net/tmp/102972-how-can-i-show-a-pdf-in-the-latest-version-of-the-jce-1.gif

Set a width and a height for the iframe, and any other options you requires, and click the Insert button.

https://cdn.joomlacontenteditor.net/tmp/102972-how-can-i-show-a-pdf-in-the-latest-version-of-the-jce-2.gif

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
The screenshot you included in your email is of the default Tinymce editor.

Please see step 4 of the installation instructions - https://www.joomlacontenteditor.net/support/installation/editor

Please do not reply to the notifcation emails sent to you. Only reply to threads in this forum.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

adjei7
I'm trying to show an embedded pdf using JCE, however after embedding the pdf tries to loads in the browser. I get a dialogue box open up by firefox asking how I want to open the file. I want it to show in the actual article. How can I do this?

Thanks,

adjei7
[quotePost id="106919"]I'm trying to show an embedded pdf using JCE, however after embedding the pdf tries to loads in the browser. I get a dialogue box open up by firefox asking how I want to open the file. I want it to show in the actual article. How can I do this?

Thanks,[/quotePost]

Actually, it turns out that it is a browser issue. It seems to work perfectly in Chrome, but firefox downloads the article. Any help would still be much appreciated, though.

Ryan
Actually, it turns out that it is a browser issue. It seems to work perfectly in Chrome, but firefox downloads the article. Any help would still be much appreciated, though.


This is because of Firefox Applications settings.

In Firefox Preferences, search for "pdf" then set the Portable Document Format Content Type to Open in Firefox.

https://cdn.joomlacontenteditor.net/tmp/102972-how-can-i-show-a-pdf-in-the-latest-version-of-the-jce-4.jpg

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

matrix
Hi - PDF in iFrame is a great solution.
To this a question: it is possible, that i can a function, that the last uploaded pdf in a folder will show?

Ryan
To this a question: it is possible, that i can a function, that the last uploaded pdf in a folder will show?


Can you explain further?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

matrix
Hi Ryan
Yes - i have this situation:
I have a folder. Here a user uploads a magazine as a PDF (approx. Every two months). The PDFs are saved on the server as follows:

2021_01_02_Pontonier.pdf
2021_03_Pontonier.pdf
2021_04_Pontonier.pdf
2021_05_06_Pontonier.pdf
and so on ...

Now my question is whether you could always automatically display the latest PDF in the iframe, so that the PDF cannot be manually uploaded to the module or module every time you upload it. needs to be adjusted in JCE.

Ryan
No, JCE does not create or update dynamic content in this way. There may be an extension on the JED that process media folders for display - https://extensions.joomla.org/

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

matrix
OK - yes, i have easyfolderlisting pro - but, here is only show the file/name, not the pdf himself.
but thank you...

jamfx
Hi, i tried the shown way. I have the same issue in FF. The browser directly starts to save the file. If i do it with TinyMCE everything works fine, also in FF. The code TinyMCE generates and works like charme looks like this:

<p><object data="images/<URL-to-PDF.pdf>" type="application/pdf" width="600" height="400">
  Es gibt kein pdf-Plugin, es kann <a download="" href="https://www.joomlacontenteditor.net/images/<URL-to-PDF.pdf>"> die pdf-Datei heruntergeladen werden.</a></object></p>
I will try to make a snippet (with a RegularLabs Extension) to embed it with JCE. :-) As a workaround. Best regards Niko

Ryan
Hi, i tried the shown way. I have the same issue in FF. The browser directly starts to save the file. If i do it with TinyMCE everything works fine, also in FF.
The code TinyMCE generates and works like charme looks like this:


I'm working on updating the File Manager to use the tag for embedding some file types (such as pdf) for the next update.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Copyright © 2024 Widget Factory Limited. All rights reserved.
Widget Factory Limited and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.