Comments (7)
there you go: http://github.com/grosser/PDFKit/commit/11dadca2ca0ed85c3dc5e653f62f296a863d37a9
from pdfkit.
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.
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.
Something like that http://github.com/grosser/PDFKit/commit/84ff40940c1a002e6e2bf1db998fe0ea2c996521
from pdfkit.
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.
if someone can alter your PATH your screwed anyway...
from pdfkit.
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)
- How to decrease response time for loading the page for image ? HOT 1
- File.exists? is deprecated HOT 2
- URI::escape and URI::decode are deprecated in Ruby 3 HOT 4
- bug: DPI settings generate wrong command? HOT 1
- Command Injection in pdfkit >=0.0.0 (CVE-2022-25765) HOT 1
- empty pdf file generating
- Vulnerabilities found! HOT 3
- Changes in #511 break PDFKit for rack 2.x apps HOT 1
- High Severity: URL Escaping when you should be shell escaping HOT 12
- Support for multiple `replace` HOT 3
- Support for multiple `replace` HOT 1
- wkhtmltopdf is deprecated by its author HOT 2
- Exit with code 1 due to network error: ProtocolUnknownError HOT 5
- Should latest commit not be released as 0.8.7.3? HOT 1
- Error when trying to convert to pdf HOT 3
- AmCharts Graphs Not Rendering in PDF Using pdfkit HOT 1
- convert pdf to html HOT 1
- PR Bot Configuration HOT 1
- PDF/A-1 HOT 1
- Table can not be recovered HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfkit.