Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nuxt-pdf #566

Merged
merged 6 commits into from
Feb 2, 2023
Merged

Add nuxt-pdf #566

merged 6 commits into from
Feb 2, 2023

Conversation

BracketJohn
Copy link
Contributor

@BracketJohn BracketJohn commented Jan 31, 2023

nuxt-pdf is a module to add typed html2pdf bindings as a client-side plugin. This allows printing a PDF like this:

<template>
  <div>
    <div ref="pdfSection">
      Thanks for testing out nuxt-pdf!
    </div>
    <button @click="await exportToPDF('my-pdf-file.pdf', pdfSection)">
      print card
    </button>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const pdfSection = ref<HTMLElement | null>(null)
</script>

Yay 🎊

Docs are here: https://sidebase.io/nuxt-pdf/getting-started

@codesandbox
Copy link

codesandbox bot commented Jan 31, 2023

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

modules/nuxt-pdf.yml Outdated Show resolved Hide resolved
@autofix-ci
Copy link
Contributor

autofix-ci bot commented Feb 1, 2023

Hi! I'm autofix logoautofix.ci, a bot that automatically fixes trivial issues such as code formatting in pull requests.

I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:

  1. Allow edits by maintainers for your pull request, and then re-trigger CI (for example by pushing a new commit).
  2. Manually fix the issues identified for your pull request (see the GitHub Actions output for details on what I would like to change).

@BracketJohn
Copy link
Contributor Author

Alright @atinux, CI passing + initial review adressed 🎊

@atinux atinux merged commit f68e9ff into nuxt:main Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants