Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 917773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:15:48+00:00 2026-05-15T18:15:48+00:00

ruby -v = 1.9.1p378; rails -v = 2.3.8 wkhtmltopdf works just fine from the

  • 0

ruby -v = 1.9.1p378; rails -v = 2.3.8

wkhtmltopdf works just fine from the command line – generates a PDF. The path to the .exe is in the %PATH% variable as well as specified properly in the /config/initializers/wicked_pdf.rb file.

Set up the controller action to handler .pdf format but I get the following error

Permission denied – c:/Ruby191/bin/wkhtmltopdf – –

C:/Ruby191/lib/ruby/1.9.1/open3.rb:67:in 'spawn'  
C:/Ruby191/lib/ruby/1.9.1/open3.rb:67:in 'popen3'  
C:/work/hello/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:21:in 'pdf_from_string'  
C:/work/hello/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:28:in 'make_pdf'  
C:/work/hello/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:39:in 'make_and_send_pdf'  
C:/work/hello/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:13:in 'render_with_wicked_pdf'  
... controller related code follows ...

I’ve tried putting the wkhtmltopdf.exe (and related files) in various directories and checked permissions on those dirs to allow full control to Everyone.

Any help as to where the permission problem might be would be appreciated.

As a note: this works just fine run from the command line ruby pdftest.rb

require 'open3'
Open3.popen3('/bin/tools/wkhtmltopdf.exe http://www.google.com/ g.pdf')

The PDF is created with remarkable speed and no permission problems. Could be a problem with the account running WEBrick but I would think that would be solved by giving Everyone permission on the dir that has wkhtmltopdf.exe

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:15:48+00:00Added an answer on May 15, 2026 at 6:15 pm

    I had to answer my own question. I’m stupid sometimes you know.

    In the :exe_path variable I had put the path to the exe not including the name of the exe. when I added wkhtmltopdf.exe to the end of my existing path I fixed the permissions issue.

    Posted in case someone else has the same issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.