user1687711
user1687711

Reputation: 443

Use of object tag for inline pdf display in html

Planning to use Object tag to display pdf file inline in HTML file. Is this recommended? Or are there any pitfall for this approach; anyone can point out e.g. Browser compatibility, Security

Upvotes: 3

Views: 13738

Answers (2)

Jukka K. Korpela
Jukka K. Korpela

Reputation: 201568

There is hardly any specific recommendation on this, either way in published specifications. Technical issues include:

  1. Not every computer has a PDF viewer (in a manner that makes the browser able to launch it).
  2. Quite often, people report problems when a web browser tries to open a PDF file (launch a viewer for it), even in cases where the PDF viewer can open the file OK if it has been saved on local disk first.
  3. PDF documents, especially when embedded inside an HTML document, do not work well in small displays. (Try opening one on a smartphone.)
  4. PDF is, as a rule, less accessible than HTML format.
  5. PDFs embedded in HTML documents are not common, which implies that people may have usability problems with them, even if they are familiar with a PDF viewer. This depends on exactly how a browsers launches a PDF viewer to display the document.

Upvotes: 1

Brett Zamir
Brett Zamir

Reputation: 14345

Looks like its been supported well for a while: http://joliclic.free.fr/html/object-tag/en/object-application.html#pdf

Upvotes: 2

Related Questions