Skip to content

How can I embed a PDF with MyST? #299

@emilopez

Description

@emilopez

Hi, I would like to embed a pdf file.

I tried installing the pdfembed sphinx extension.

I added in this in my _config.yml

sphinx:
  extra_extensions: [ 'sphinxcontrib.pdfembed' ]

and then in the md file

```{eval-rst}
:pdfembed:`src:_static/m.pdf, height:500, width:500, align:middle`
and copy m.pdf to `_static` directory,  finally I did  `jb build mini_book`. the build process completes without errors,  but then I cant see the pdf in the html.

I tried changing the path to the file, using `src:/_static/m.pdf`,  `src:./_static/m.pdf`,  but there was no case, it didn't work.
Any idea?
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions