1.4.0 • Published 11 months ago

vue-pdfeasy v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Vue PDFEasy

A PDFEasy plugin for Vue 3.x

Install

npm i vue-pdfeasy

Example

//...
import { PDFPlugin } from 'vue-pdfeasy';
//...
const app = createApp(App);
app.use(PDFPlugin);
app.mount('#app');

// ...

<template>
  <iframe id="pdf" />
</template>

<script setup lang="ts">
import { usePDF } from 'vue-pdfeasy'

const pdf = usePDF()

pdf.new()

pdf.add([
  { raw: 'Simple text!' },
])

pdf.run({
  type: 'client',
  clientEmit: 'blob'
}).then((blob) => {
  const iframe = document.querySelector('#pdf')

  iframe.src = blob
}).catch((err) => {
  console.error(err)
})
</script>
1.2.0

11 months ago

1.1.1

11 months ago

1.4.0

11 months ago

1.2.2

11 months ago

1.3.0

11 months ago

1.2.1

11 months ago

1.1.2

11 months ago

1.1.0

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago