Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Embded PDF's

Go to End



Community Member, 1 Post

30 September 2017 at 4:07am

So I am trying to embed a PDF onto a page and it will just not work. For instance, I go into the HTML editor and directly add "<embed src="study/sample.pdf" type="application/pdf" height="300px" width="100%">". For some reason when I hit save it gets changed to "<p><object width="100%" height="300px" data="study/sample.pdf" type="application/x-shockwave-flash"><param name="src" value="study/sample.pdf" /></object></p>".

I'm unsure as to why it is being changed to "application/x-shockwave-flash". I have application/pdf set in my mime.types. What am I missing? Do I not have an appropriate PDF viewer, so it's defaulting to shockwave? What can I do to fix this issue.

OS: Devuan jessie (debian spinoff without system.d)