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

  • SEARCH
  • Home
  • 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 917683
In Process

The Archive Base Latest Questions

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

I wanted to create PDFs for my rails application using wkhtml2pdf and wicked_pdf. I

  • 0

I wanted to create PDFs for my rails application using wkhtml2pdf and wicked_pdf.
I downloaded and extracted wkhtml2pdf beta 4 and placed it in /usr/local/bin/wkhtml2pdf
I tried running it on a web site and it gave a nice result.

In my rails application (2.3.4) I installed wicked_pdf:

script/plugin install git://github.com/mileszs/wicked_pdf.git
script/generate wicked_pdf

Everything seemed to be ok.
inside script/console I run the following – (with the following output)

wp = WickedPdf.new

=># WickedPdf:0xb62f2c70 @exe_path=”/usr/local/bin/wkhtmltopdf”

HTML_DOCUMENT = "<html><body>Hello World</body></html>"

=> “<html><body>Hello World</body></html>"

pdf = wp.pdf_from_string HTML_DOCUMENT

=> “/usr/local/bin/wkhtmltopdf – – -q”

=> “\n\n\n\n\n\n\n\n\n\n”

of course this isn’t good. According to the test the result of my last command should start with “%pdf-1.4”

Any idea what I can do?

  • 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:14:58+00:00Added an answer on May 15, 2026 at 6:14 pm

    Having the same problem. Removed the -q option from the wicked_pdf.rb file on line 19 and then was able to get the proper string on the console.

    => "%PDF-1.4\n1 0 obj\n<<\n/Title ...
    

    This also seems to have solved other problems. The PDF still didn’t render correctly when using it from the web site – embedded font issue – on to the next issue now.

    Hopefully this will work for you.

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

Sidebar

Related Questions

I wanted to create static and a dynamic drop down for an online application
I wanted to create my own Python exception class, like this: class MyException(BaseException): def
Let's say I woke up today and wanted to create a clone of StackOverflow.com,
I wanted to generate one fix view using interface builder, but the size of
I wanted to create search engine for my webpage, but during indexing on server
I wanted to create a list of options for testing purposes. At first, I
I wanted to create a text based browser game, so how should I go
I wanted to create a button that had an image and a textblock as
I wanted to create a view that looked something like the following but i
I wanted to create a new WordPress page that is actually a link to

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.