vue js pdf code example

Example 1: how to use vuejs with pdfjs

<template>
  <div id="app">
    <PdfViewer/>
  </div>
</template>

<script>
import PdfViewer from "./components/PdfViewer";

export default {
  name: "App",
  components: {
    PdfViewer
  }
};
</script>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  background-color: black;
  padding: 50px;
}
</style>

Example 2: vue-pdf example

// Look at this maybe that can help
https://www.youtube.com/watch?v=u1Q1glqVEkc&ab_channel=CodingShiksha

//look at the git repository :
https://github.com/FranckFreiburger/vue-pdf

Tags:

Misc Example