GithubHelp home page GithubHelp logo

Comments (4)

yugandharc9 avatar yugandharc9 commented on July 17, 2024

Hi Peter was facing same problem solved by

cd deps/pdf_generator/priv && npm install

In my mix.exs

  { :pdf_generator, ">=0.6.2" },

from elixir-pdf-generator.

yugandharc9 avatar yugandharc9 commented on July 17, 2024

Used like this

 PdfGenerator.generate(html,page_size: "A3", delete_temporay: true,generator: :chrome, prefer_local_executable: true)

from elixir-pdf-generator.

jarvisjohnson avatar jarvisjohnson commented on July 17, 2024

these settings worked for me:

      PdfGenerator.generate(raw_html,
        page_size: "A4",
        prefer_local_executable: true
      )

I didn't have any config for the package in my config.exs, just that above with yarn add chrome-headless-render-pdf puppeteer in /assets

from elixir-pdf-generator.

gutschilla avatar gutschilla commented on July 17, 2024

Thanks for pointing that out. This seems to be an incompatibility with newer Phoenixes

from elixir-pdf-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.