0👍
You can put pdf file to src
folder and import to the component as bellow.
<template>
<div>
<embed style="width: 100vw; height: 100vh" :src="pdf" />
</div>
</template>
<script setup>
import pdf from "../assets/sample.pdf";
</script>
- [Vuejs]-How do I properly strongly-type a reactive array whose elements are interfaced Class objects?
- [Vuejs]-VueJS v3: automatically add css class to any component
Source:stackexchange.com