S
S
shaphranskaya2018-10-10 16:10:13
Content
shaphranskaya, 2018-10-10 16:10:13

How beautiful to place PDF documents on the site?

  1. Posting through opening a PDF in a new tab is clumsy.
  2. The PDF viewer on the page is also not very convenient.
  3. Converting to jpg and then placing a gallery is also a so-so idea.

I didn't find good examples.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sadieff, 2020-02-04
@sadieff

<embed src="ссылка файла pdf" width="ширина в пикселях" height="высота в пикселях" />

V
Vladislav Lyskov, 2018-10-10
@Vlatqa

https://jqueryhouse.com/20-best-jquery-flipbook-pl...

M
Moskus, 2018-10-11
@Moskus

(1) is the most correct solution. Do not try to impose on the user the way of viewing that you or someone else likes. Let him use the one that suits him and that he has configured (download, browser view, something else).
(2) is a bad decision, because the viewer embedded in the page steals screen space, and if it doesn't, then it is equivalent to (1) in the case of viewing by means of a browser. Particularly bad is all sorts of crap showing a spread, and not a page. This is terribly inconvenient and is necessary only in one case, which should be categorically avoided - when, for example, there is a PDF made up for printing on spreads, where the content goes from one page to another (this happens with catalogs) and without seeing the entire spread , it's just impossible to read.
(3) - in general, the most disgusting solution, because the ability to copy text, change the scale, see vector illustrations, etc. is lost.
General advice: in this case (and generally, usually) it is worth going from useful functionality, and not from embellishment or subjective criteria like "looks cheap", "too simple" (just for whom and why?).

M
Michael, 2020-07-02
@moonz

Implementation via iframe

<iframe src="https://docs.google.com/viewer?url=file.pdf&embedded=true" 
style="width: 600px; height: 600px;" frameborder="0">Ваш браузер не поддерживает фреймы</iframe>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question