Git Product home page Git Product logo

Comments (7)

grosser avatar grosser commented on June 27, 2024

there you go: http://github.com/grosser/PDFKit/commit/11dadca2ca0ed85c3dc5e653f62f296a863d37a9

from pdfkit.

dburry avatar dburry commented on June 27, 2024

That little beauty does install it where rvm likes to put binaries, but pdfkit is still hard-coded to the system location, and so rake spec fails too.

from pdfkit.

grosser avatar grosser commented on June 27, 2024

oops i overlooked that, in my branch its still just 'wkhtmltopdf', is there a reason why it was hardcoded ?
if there is then it should be something like
executable = File.exist?(hardcoded) ? hardcoded : 'wkhtmltopdf'

from pdfkit.

grosser avatar grosser commented on June 27, 2024

Something like that http://github.com/grosser/PDFKit/commit/84ff40940c1a002e6e2bf1db998fe0ea2c996521

from pdfkit.

dburry avatar dburry commented on June 27, 2024

the only reason I can think of is some may consider it a security concern to not hard code every path to every executable in a production system... but others may consider this concern pretty minor, since you have to be broken in pretty far to affect it anyway.

from pdfkit.

grosser avatar grosser commented on June 27, 2024

if someone can alter your PATH your screwed anyway...

from pdfkit.

jdpace avatar jdpace commented on June 27, 2024

Hey guys,

I pulled Grosser's changes in and released v0.4.2.

Dburry, if you are worried about referring to wkhtmltopdf directly on your path, you can always point PDFKit to the binary by doing:

PDFKit.configure do |config|
config.wkhtmltopdf = '/path/to/wkhtmltopdf'
end

Jared

from pdfkit.

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.