Jump to content
Click here if you are having website access problems ×

Can you see these pdfs? All responses appreciated.


Jonathan Kay

Recommended Posts

  • Member

Thanks, all.

  1. Andrew: have you noticed that on other sites?
  2. The original observation of the problem was with Edge on Windows 10.
  3. That was followed by "I've tried internet explorer and all I get is a box with a cross through it ( more than edge shows!), so we tried a mobile phone and get a small box that we cannot open up to show the pdf's."
  4. There's one reference to it in the archives: "That's because it's not an image - it's a PDF, and most browsers don't support embedded PDFs using <img> tags."
    And the code in the page discussed in this thread is probably: 
    <p><img alt="" src="/sites/default/files/inline/images/Xflow%20cooling.pdf"></p>

Jonathan

Link to comment
Share on other sites

  • Member

Thanks, everybody. I think that we've got a pretty good picture (!) of what's happening.

  1. I played with Chrome on macOS but couldn't find a setting that made it work.
  2. I used a well-known search engine and found other reports, but no solution. That included the official support site for Chrome.
  3. I'm going to try not to use pdfs in this way when there's an alternative.

Jonathan

Link to comment
Share on other sites

Hi Jonathan,

"PS: My guess is that all browsers can show them inline, but some need a bit of configuration."

I clearly failed miserably to convince you otherwise when this last came up!! Just to re-iterate - when a user inserts a pdf within a post, the forum software attempts to display it using an <img> tag. As I suggested previously:-

"As far as I have been able to ascertain, PDF's are apparently usually embedded with <object>, <iframe> or <embed> tags. In theory the <img> tag can be used with single page vector pdfs but the majority of browsers have never supported it."

e.g. Firefox doesn't:-

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Supported_image_formats

- and by all reports neither does Chrome. Clearly Apple have implemented this (and perhaps some Linux distributions?), but these represent a small fraction of the total browser market, so no commercial website will ever use it.

There's no obvious mechanism here for a poster to insert an in-line pdf in any other way that would be visible to all, ...but just posting a <link> to a pdf works for everybody !

Cheers
Barry

Link to comment
Share on other sites

  • Member

- and by all reports neither does Chrome. Clearly Apple have implemented this (and perhaps some Linux distributions?), but these represent a small fraction of the total browser market, so no commercial website will ever use it.

In case anyone's wondering how that squares with Tony's observation:

Chrome and Firefox on iPad can see both.

it's possibly because on iOS those (and possibly all other browsers) use WebKit.

Jonathan

PS: Thanks, Barry. :-)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...