Skip to content

PDF #3451

Answered by fdevans
Oneupupup asked this question in Q&A
PDF #3451
Sep 10, 2023 · 1 comment
Discussion options

You must be logged in to vote

Our works with the following config. (reduced size to focus on the important part)

  theme: hopeTheme({
    plugins: {
      components: {
          components: [
            "FontIcon",
            "PDF",
            "VideoPlayer",
            "YouTube",
          ],
          componentOptions: {
            fontIcon: {
              assets: "fontawesome",
            },
            pdf: {
              pdfjs: "/assets/lib/pdfjs/",
            },
          }
      }
    },
])

Then in the page use <PDF url="/files/your.pdf" page="1"/>

The full example here: https://github.com/rundeck/docs/blob/vuepress2-migration/docs/.vuepress/config.ts

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mister-Hope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants