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 7989819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:51:09+00:00 2026-06-04T12:51:09+00:00

I am trying to convert a html page to pdf using command-line convertor WKHTMLTOPDF.

  • 0

I am trying to convert a html page to pdf using command-line convertor WKHTMLTOPDF.
It does not return me anything and it does not throw any errors ether.

[root@s16271040 var]# grep -i amd /proc/cpuinfo
[root@s16271040 var]# grep -i intel /proc/cpuinfo
vendor_id       : GenuineIntel
model name      : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz
vendor_id       : GenuineIntel
model name      : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz
vendor_id       : GenuineIntel
model name      : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz
vendor_id       : GenuineIntel
model name      : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz
vendor_id       : GenuineIntel
model name      : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz
vendor_id       : GenuineIntel
model name      : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz
vendor_id       : GenuineIntel
model name      : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz
vendor_id       : GenuineIntel
model name      : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz

[root@s16271040 bin]# ls -la | grep -i pdf
-rw-r--r--  1 root root    8224273 May 24  2010 wkhtmltopdf-0.9.9-static-i386.tar.bz2
-rwxrwxrwx  1 root root    8218920 May 24  2010 wkhtmltopdf-i386
-rwxrwxrwx  1 root   1000 11446024 Oct  2  2011 wkhtmltopdf-i386_11
-rw-r--r--  1 root root   11414685 Oct  2  2011 wkhtmltopdf-i386.tar.bz2

[root@s16271040 bin]# wkhtmltopdf-i386 http://google.com test.pdf
[root@s16271040 bin]# ls -la | grep -i test.pdf

The version I am trying is 0.9.9 taken from http://code.google.com/p/wkhtmltopdf/downloads/list
I tried the latest one – 0.11.0. Still no success

Any help will be appreciated

  • 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-06-04T12:51:10+00:00Added an answer on June 4, 2026 at 12:51 pm

    wkhtmltopdf needs an x instance, possibly provided by xvfb it no real x server is running, as for instance mentioned here.

    In case that link dies in future, something like:

    xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf --dpi 200 --page-size A4 http://domain.tld/page.html /path/to/output.pdf
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am trying to read a html file and convert it to pdf using
I have been trying to convert an html page to PDF with out any
I'm using ITextSharp to convert an HTML document into PDF. I use HTMLWorker.ParseToList and
I am using an ephtmltopdf dll to convert an .aspx page to a pdf.The
For the longest time now I've been trying to convert HTML pages containing large
I am trying to convert an html file to xml. It is working for
I'm trying to convert my knockoutJs html code to HAML, trying to achieve something
Intro I am in the process of trying to convert my first HTML/CSS design
I am trying to convert a block of text that contains html text -
I am trying to get a working regular expression to convert standard HTML code

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.