Pdf on webpage: best solution

I need to include PDF files on some web pages and I am getting problems. The application is a simple newspaper archive in which I can read directly on the page or upload pdf files, one file per page. My client can provide me one PDF file for each page; what my client wants from me is to move them by indexes (with thumbnails of pages) and read them by what is selected directly on the page; I am using php / mysql.

I started trying to use the tag <object>with type="application/pdf", but I found that it depreciates because it is not cross-platform at all (there is no support in linux browsers, but even firefox 3.5 for Windows could not show me anything).

I suggested that I can convert this pdf to something else (html or just the images are good enough), but the only thing I found is ImageMagick , which I cannot use, since I have to install on the server, and I cannot, because I I am not the administrator of this machine.

So I'm finally looking for suggestions

thank

+3
source share
1 answer

Display the pdf file with IFRAME. A sketch you can create with imageMagik. You should be able to use the command line version for ImageMagik to resize and convert to jpg.

change

php ImageMagik, .

, .

, Google , , .

- png . .

+1

Source: https://habr.com/ru/post/1734167/


All Articles