783 B
783 B
PDF Reader
Embed PDF files directly in your markdown.
Configuration
Enable the feature in .vuepress/config.ts:
export default defineUserConfig({
theme: plumeTheme({
markdown: {
pdf: true,
},
})
})
Syntax
Simple syntax:
@[pdf](url)
With options:
@[pdf 2 no-toolbar width="100%" height="400px" ratio="16:9" zoom="100"](url)
Parameters:
url: PDF URLpage: Page number (e.g.,2in@[pdf 2])no-toolbar: Hide the toolbarwidth: Width (default100%)height: Height (defaultauto)ratio: Aspect ratio (default16:9if height not set)zoom: Zoom level percentage
Example
@[pdf 2 no-toolbar](https://plume.pengzhanbo.cn/files/sample.pdf)