October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

How to Install wkhtmltopdf on Ubuntu in India

Use Ubuntu’s apt package for a straightforward wkhtmltopdf installation. Package choice depends on your Ubuntu codename and CPU architecture, not your location in India.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On most Ubuntu systems, install wkhtmltopdf from Ubuntu’s own package archive: run sudo apt update, then sudo apt install wkhtmltopdf, and confirm it with wkhtmltopdf --version. You do not need a special India-specific package: choose a package for your Ubuntu release and CPU architecture.

Install wkhtmltopdf from Ubuntu’s package archive

  1. Refresh the package index: sudo apt update.

  2. Install the package: sudo apt install wkhtmltopdf. Review apt’s proposed changes and confirm the installation.

    As an Amazon Associate I earn from qualifying purchases.

  3. Check that the command is available: wkhtmltopdf --version. The command should print the installed version.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Ubuntu’s archive lists wkhtmltopdf for Ubuntu 22.04 and 24.04. The exact version, architecture, dependencies, and availability depend on your release and configured repositories; check those details for your own system rather than assuming every Ubuntu installation receives the same package. The archive package is in Universe for the releases covered here. If apt cannot locate it, check whether the appropriate repository is enabled for your Ubuntu release.

Does installation in India require a different package?

No India-specific build is identified in the project’s download options or Ubuntu package records. Package choice is determined by your Ubuntu codename and CPU architecture, not your country. Ubuntu uses configured archive mirrors to retrieve packages; use the mirror configured on your system, but availability or speed of a particular Indian mirror is not established here.

Choose between Ubuntu’s package and an upstream release package

Route When it may fit What to check
Ubuntu archive package A straightforward installation managed by apt. Ubuntu records the package for 22.04 and 24.04. Confirm the package is available for your exact release and architecture, and note the version apt proposes.
Upstream release package You need a listed upstream build, such as the stable 0.12.6 series, and its release/architecture match your system. Match the Ubuntu codename and CPU architecture exactly. The upstream downloads page lists builds for Ubuntu 22.04 (jammy), 20.04 (focal), and 18.04 (bionic); supported architectures differ by release.

These are separate packaging routes, and a package built for one Ubuntu release should not be assumed to work on another. The Ubuntu archive records Jammy’s source package as 0.12.6-2 and Noble’s package as 0.12.6-2build2; those package identifiers describe the archive builds, not a guarantee that they suit a different release or architecture. See the wkhtmltopdf downloads page and Ubuntu’s package records for Jammy and Noble.

Install a matching upstream .deb manually

  1. Find your Ubuntu codename and architecture. You can check the release with . /etc/os-release && echo "$VERSION_CODENAME" and the machine architecture with dpkg --print-architecture.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  2. On the upstream downloads page, select a package explicitly matching both. The listed Ubuntu builds cover jammy, focal, and bionic; do not infer support for a different release from a similar name.

  3. Install the downloaded local package with apt, which can resolve available dependencies: sudo apt install ./wkhtmltox_*.deb. Replace the pattern with the actual downloaded filename if needed.

  4. Verify the executable with wkhtmltopdf --version.

If apt reports unmet dependencies or an incompatible package, stop rather than forcing installation across releases. The upstream guidance notes that a package can sometimes be extracted when it cannot be installed, but extraction does not supply missing dependencies and is not a routine compatibility fix. Consult the upstream installation guidance and use a build suitable for your system.

Use wkhtmltopdf to create a PDF

Once installed, a basic conversion takes an input URL and an output filename:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

wkhtmltopdf https://example.com page.pdf

For a local HTML file, pass its path and a destination, for example wkhtmltopdf ./page.html ./page.pdf. The conversion depends on the installed build and the HTML content; this basic command does not establish that every modern site or script-heavy page will render identically.

Security warning for server-side use

The wkhtmltopdf project warns: “Do not use wkhtmltopdf with any untrusted HTML – be sure to sanitize any user-supplied HTML/JS, otherwise it can lead to complete takeover of the server you are running it on!” If your application converts user-submitted content, sanitize it and do not treat the converter as safe for arbitrary HTML or JavaScript. Read the project’s official guidance.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If your actual goal is to capture a webpage as an image or PDF through an API, ScreenshotNeo offers a one-request alternative. It is not a wkhtmltopdf package or a drop-in local command-line converter.

cURL example, using the API’s documented endpoint and a page URL:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for parameters and output options. It removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are not billed; and its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000. Sign up for 1,000 free screenshots a month, with no card required.

Frequently Asked Questions

Which Ubuntu versions have package records cited here?

The Ubuntu archive records wkhtmltopdf for Ubuntu 22.04 and 24.04. Check the package availability and architecture for your exact release.

Can I install an upstream package built for Ubuntu 20.04 on Ubuntu 24.04?

Do not assume it is compatible. Match the package to your Ubuntu codename and CPU architecture; a different-release package may fail to install or lack compatible dependencies.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.