0

When using LaTeX one can include a PDF as an image (this is usually done, e.g., with scientific papers, in which one can include a graph in PDF, so that it can be shown properly at different scales).

By using some tools like remark and MathJax one can create web pages with some LaTeX insertion. Now, suppose I am interested in including a PDF as an image, as I usually do with plain LaTeX files.

I have tried to include my PDF using the <img> tag, and everything was working, since I realized that this only works in Safari (since Safari considers PDFs as images too). This consequently does not work in other browsers, as Chrome / Firefox.

So, I tried to include the image with an <embed> tag, as shown here. However, what I obtain is a mini-PDF viewer inside the browser, with a grey frame all around the image I am including. I would instead like to include just the image, with no frames.

Is there a way of reproducing this behavior?

Thank you in advance.

Community
  • 1
  • 1
Eleanore
  • 1,750
  • 3
  • 16
  • 33

1 Answers1

0

I dont know what type of framework or cms you use for your Homepage. But i guess you have to use sth like "imagemagick" to render your pdf files, like its done in wordpress or other cms systems.

jungerislaender
  • 304
  • 1
  • 12