How to generate PDF in React using React pdf

Поделиться
HTML-код
  • Опубликовано: 17 янв 2025

Комментарии • 9

  • @princyworkspace
    @princyworkspace 11 дней назад

    You covered a good shunk of usecases, nice job

  • @isaycats3864
    @isaycats3864 День назад

    Pretty cool stuff, thanks alot!

  • @fauzanhibatulahashari1132
    @fauzanhibatulahashari1132 18 дней назад

    The restriction of react pdf is it cannot be generated in mobile browser, I prefer jspdf instead

  • @amankumarverma8426
    @amankumarverma8426 29 дней назад

    Terminal setup tutorial pleaseee

    • @CandDev
      @CandDev  29 дней назад

      Great idea, hopefully soon.

  • @lokvr-m4n
    @lokvr-m4n Месяц назад

    great video🎉

  • @AswanthRaveendranEK
    @AswanthRaveendranEK 26 дней назад

    Hi thanks for the tutorial. It's really helpfull.
    But I have an issue. I am using this with next js 15 while importing I am getting an error like this
    import {
    Document,
    } from "@react-pdf/renderer";
    The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@react-pdf/renderer")' call instead.
    To convert this file to an ECMAScript module, add the field `"type": "module"` to '/home/aswanthraveendranek/UPDOT/karma/apps/web/package.json'
    I tried importing dynamically but then I am getting error like props is not a function and some thing else.
    I am not using PDFViewer Just created the Document and Downloading it using PdfDownloadLink
    Do you have any solution for this?

  • @Md_Mahafujur_Rahaman_Masud
    @Md_Mahafujur_Rahaman_Masud 29 дней назад

    On here i want just show invoice not others Settings... Like background gray,pdf other option...