Show PDF embedded - Forum | JoomShaper
Staff replied SP Page Builder

Show PDF embedded

Asked by Jim 2 years ago Last activity 2 years ago

HI,
with Joomla Core you can simply go to Media, search for your PDF file an embed that file.
with the image browser from sp pagebuilder thats not possible. would be nice if there is a way to embed files just like in core component.

in the image browser i dont even see the pdf files. can i activate that feature? or is it just not possible via sp pagebuilder?

11 replies

Paul Frankowski Senior Staff

Hi JIm,

it should be possible, but you have to in "Media Manager" > click "Folders" > and you can see all pdf files uploaded also from Joomla Media.

info_2817_2024.jpg

Paul Frankowski Senior Staff
2 years ago · edited

To show PDF as preview file inside SPPB Page - you have to use Raw HTML addon with simple HTML code inside. Example code for "file.pdf":

  <object data="/images/file.pdf" type="application/pdf" width="100%" height="500px">
      <p>Unable to display PDF file. <a href="/images/file.pdf">Download</a> instead.</p>
    </object>

HTML Guide: https://www.w3docs.com/snippets/html/how-to-embed-pdf-in-html.html


How it will look after using it in preview mode

info_2818_2024.jpg

I assume it's what you needed thinking/talking about "embed pdf file(s)"

Jim Asked this

yes thats what i need.
so in sppb text-editor - via media - its not possible? there i cant see my pdf files...
the sppb blocks the core media embed? for pdf files?

Paul Frankowski Senior Staff

If you have JCE Pro editor all that is possible just from toolbar!

But you have to switch to System Editor view first.

Jim Asked this

ok i have just the jce basic.
but why does the sppb image manager block this core feature?

Paul Frankowski Senior Staff
2 years ago · edited

Here is screenshot from my demo site to show you how it may works (in just 3 clicks)

info_2820_2024.jpg

info_2819_2024.jpg

Jim Asked this

tried other editor.. both... doesnt work properly

Paul Frankowski Senior Staff

Codemirror is for HTML mode, not for typical text. For those you have RAw HTML addon.

TinyMCE should work, withoout details hard to say more.

Jim Asked this

screenshot

Log in to reply.