R markdown: can I insert a pdf to the r markdown file as an image?

前端 未结 4 1760
长发绾君心
长发绾君心 2021-02-04 01:23

I am trying to insert a pdf image into an r markdown file. I know it is possible to insert jpg or png images. I was just wondering if it is also possible to insert a pdf image.

4条回答
  •  暖寄归人
    2021-02-04 02:09

    In relation to the comment of the best answer, there is a way to use the second option, and the output not come out tiny.

    Use the following syntax below with the height being a large number. Having text in the brackets is necessary for it to work.

    ![Alt](./file.pdf){width=100% height=400}
    

提交回复
热议问题