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

Install Poppler’s command-line utilities in the same environment that runs your PDF code, then make sure that environment can find pdfinfo. On Ubuntu and Debian, install the poppler-utils package. On macOS, install Poppler with Homebrew. On Windows, install a suitable Poppler build and add its bin directory to PATH, or provide that directory through your PDF library’s configuration. Installing the Python package pdf2image alone does not install the Poppler executable.

What the error means

The message PDFInfoNotInstalledError: Unable to get page count. Is Poppler installed and in PATH?, or a shorter error such as pdfinfo not found, means the program tried to launch the pdfinfo executable and could not locate it. pdfinfo is distributed as part of Poppler, a system utility suite. In a common Python workflow, pdf2image is only the Python wrapper; it calls Poppler programs such as pdfinfo and pdftoppm underneath.

Databricks Knowledge Base describes the dependency this way: “The required tool, pdfinfo, comes from the poppler-utils Linux package, which must be installed using a system package manager like apt-get.” The practical fix is therefore a system installation and an environment check, not another pip install alone.

Check the failure before changing anything

  1. Run the command-discovery check for your operating system: command -v pdfinfo on Linux or macOS, or Get-Command pdfinfo in PowerShell on Windows.
  2. If a path is returned, run pdfinfo -v. A version banner confirms that the executable starts. If the command-discovery check fails, continue with the platform instructions below.
  3. Make the check from the same shell, notebook kernel, container, virtual machine, or service that runs the PDF program. A working command in your personal terminal does not prove that a managed job or web process can see it.

Ubuntu and Debian: install poppler-utils

Use the distribution package manager to install the utilities. The package name is poppler-utils, not merely poppler.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
LAPGEAR Home Office Pro Lap Desk - Black Carbon, Fits 15.6” Laptops
  • Spacious Design: Measuring 21.1" wide and 14.1" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
  • Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy ergonomic support with the integrated cushioned wrist rest.
  • Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
  • Durable Surface: Work with confidence on our lap desk's solid surface, featuring a sleek black carbon color, ensuring optimal air circulation to prevent your laptop from overheating.
  • On-the-Go Convenience: With an integrated handle and lightweight design (2.8 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
sudo apt-get update
sudo apt-get install -y poppler-utils

Verify the installation in the same environment:

command -v pdfinfo
pdfinfo -v

The first command should print the executable path, and the second should print Poppler version information. If your application is running in a container, execute these commands inside that container or add the installation to its image build. Installing the package on the host does not make it available inside an isolated container.

macOS: install Poppler with Homebrew

Install Homebrew’s Poppler formula, then verify that the shell can resolve pdfinfo:

brew install poppler
command -v pdfinfo
pdfinfo -v

If you installed Poppler while a terminal, IDE, notebook server, or background service was already running, restart that process. Environment changes are read when a process starts, so an old process can retain an earlier PATH.

Windows: install Poppler and expose its bin directory

Windows does not have one universally authoritative Poppler binary source. Obtain a build appropriate for your organization and architecture, then identify the directory containing pdfinfo.exe. Add that directory’s bin path to the user or system PATH, or use the application’s explicit Poppler-directory setting when one is available.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Extract the Poppler distribution to a permanent location rather than a temporary downloads folder.
  2. Open the Windows environment-variable editor and add the distribution’s bin directory to Path. Keep existing entries intact.
  3. Close and reopen PowerShell, Command Prompt, your IDE, and any service that launches the PDF code.
  4. Verify discovery:
Get-Command pdfinfo
pdfinfo -v

If the command still is not found, inspect the directory you added and confirm that it actually contains pdfinfo.exe. A PDF library that accepts a Poppler path can be pointed directly at that directory, avoiding a global PATH change.

Rank #2
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Conda: keep Poppler and Python in the same environment

The pdf2image installation guidance supports installing Poppler from conda-forge and the Python wrapper separately:

conda install -c conda-forge poppler
python -m pip install pdf2image

Activate the environment before testing:

conda activate YOUR_ENVIRONMENT
command -v pdfinfo
pdfinfo -v

On Windows, use Get-Command pdfinfo instead of command -v. If your notebook uses a different kernel than the terminal where you activated Conda, install and test Poppler in the kernel’s environment, then restart the kernel.

Use the installed executable from Python

After Poppler is visible on PATH, a basic pdf2image conversion needs no special Poppler argument:

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

pages = convert_from_path("input.pdf", dpi=200)
for number, page in enumerate(pages, start=1):
    page.save(f"page-{number}.png")

When you cannot or do not want to alter PATH, pass the Poppler directory explicitly if your library exposes that option. For example:

from pdf2image import convert_from_path

pages = convert_from_path(
    "input.pdf",
    poppler_path=r"C:pathtopopplerbin"
)

Use the directory that contains the executables for your installation; do not point to the archive, its parent folder, or a directory containing only Python files.

Rank #3
Sale
Yilador Webcam Cover 3 Pack, 0.03 inch Ultra Thin Laptop Camera Cover Slide
  • Note: Not suitable for MacBooks released after 2023 or devices with a protruding front camera; Not applicable to full-screen or notch-style tempered glass screen protectors; Do not use on the rear camera of the phone.
  • 💻 Why Do You Need a Webcam Cover Slide? — Safeguard your privacy by covering your webcam with our reliable webcam cover when not in use. Don't let anyone secretly watch you. Stay protected!
  • ✅ Thin & Stylish — Enhance your laptop's functionality and aesthetics with our 0.027" ultra-thin webcam covers. Seamlessly close your laptop while adding a touch of sophistication.
  • ✅ Fits Most Devices — Compatible with laptops, phones, tablets, desktops! Keep your privacy intact on Ap/ple, Mac/Book, iPh/one, iP/ad, H/P, L/novo, De/ll, Ac/er, As/us, Sa/msung devices.
  • ✅ 365 Days Protection — Our upgraded 3.0 adhesive ensures a strong hold that won't damage your equipment. Experience reliable, long-term privacy protection day in and day out.

Check the environment that actually runs your code

Virtual environments and IDEs

A Python virtual environment controls Python packages but does not automatically install system utilities. Install Poppler at the operating-system or Conda level, then launch the IDE from an environment that inherits the corrected PATH. If the IDE was open during installation, restart it.

Containers

Put the Poppler installation in the image used by the application. For a Debian- or Ubuntu-based image, the relevant build step is:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
RUN apt-get update 
    && apt-get install -y --no-install-recommends poppler-utils 
    && rm -rf /var/lib/apt/lists/*

Test with docker exec (or an equivalent shell inside the running container) so you are checking the deployed filesystem, not the host.

Notebook and managed jobs

Install the package through the platform’s system-dependency mechanism or initialization script, then restart the cluster, kernel, or session when required. A package installed on a separate driver, laptop, or interactive shell is irrelevant if the failing task runs on another worker image.

Web services and scheduled workers

Service managers often provide a smaller environment than your login shell. Confirm pdfinfo from the service’s runtime and, if necessary, configure an absolute Poppler path in the application rather than relying on an interactive shell profile.

Rank #4
AboveTEK Portable Laptop Lap Desk w/Retractable Left/Right Mouse Pad Tray, Non-Slip Heat Shield Tablet Notebook Computer Stand Table w/Sturdy Stable Work Surface for Bed Sofa Couch or Travel
  • Anti-Slip Surface - Transform your laptop into a mobile workstation with the AboveTEK portable laptop lap desk. The anti-slip surface provides a strong grip for laptops up to 15.6 inches(Diagonal), while the double rubber strip on the bottom ensures a stable display or typing experience on your lap, couch, or bed.
  • Retractable Mouse Pad - Retractable laptop mouse pad extends on both directions for the left/right handed with elevation along the edges for stopping mouse from falling off. The size of laptop tray is 14" X 9.7" and the size of mouse pad is 7.4" X 6.1".
  • Effective Heat Shield - The effective heat shield made of sturdy and thick material protects your laptop from overheating. Prioritizes your comfort and safety, an ideal lap pad or board for working anywhere.
  • EASY to Carry and Store - With an ergonomic and simplistic design, the lap desk is portable to store in a backpack. Only 15" in size, 2.2 lb of weight and with slim 0.6 inch thickness, it is ready to be easily carried around.
  • Widely Applicable - The smooth platform accommodates laptops and tablets up to 15.6 inches(Diagonal), making it a versatile accessory and one of the best gifts for mom, dad, students and professionals. Perfect for use as a laptop bed tray or tablet holder anywhere at home, library, or park.

Troubleshoot the common post-install failures

Symptom Likely cause Fix
command -v pdfinfo or Get-Command pdfinfo returns nothing Poppler is absent or its executable directory is not on PATH. Install the platform package, add the correct bin directory, and start a new shell or process.
The terminal finds pdfinfo, but Python still raises the error Python is running in another environment, kernel, container, or service. Run the discovery command from that runtime and install or configure Poppler there.
Poppler was installed with pip, but the error remains The Python wrapper was installed without the system utilities. Install Poppler separately; on Ubuntu/Debian that means poppler-utils.
Windows reports that the command is not recognized The wrong folder was added, or the process has an old PATH. Confirm that pdfinfo.exe is in the selected bin folder, correct the variable, and restart the process.
An explicit Poppler path still fails The path points to the archive, a parent directory, or a folder without the executable. Point to the directory containing pdfinfo (or pdfinfo.exe) and check spelling and permissions.
pdfinfo -v works but conversion fails on one file The dependency is available; the remaining issue may be the input PDF, permissions, or another conversion setting. Test a known-readable PDF and inspect the application’s next error instead of reinstalling Poppler.

Reliability and maintenance practices

  • Run a startup check such as pdfinfo -v in deployment diagnostics so a missing system dependency is detected before a user submits a document.
  • Build Poppler into the same image or machine that executes the conversion. Treating it as a host-only installation is a common source of environment drift.
  • After changing PATH, restart long-lived processes. Workers, notebook kernels, and service managers do not necessarily reload environment variables.
  • Keep the PDF wrapper and system utility installation steps separate in setup documentation. This makes a fresh workstation, CI runner, or container reproducible.
  • Use the explicit Poppler-directory option when a service must run with a tightly controlled environment and cannot safely modify global PATH.

Poppler itself is a local dependency, so fixing discovery does not require a network request for every page conversion. Installation time and disk use depend on the operating system and package source; the error is not evidence of a particular performance or licensing problem.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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 what you actually need is a rendered webpage screenshot or PDF rather than local PDF-page conversion, ScreenshotNeo provides a single HTTP request instead of maintaining a browser and Poppler stack. Its API accepts a URL and returns PNG, JPEG, WebP, or PDF. Before capture it accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled.

Only clean shots are billed. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response identifies the result with X-Page-Verdict and X-Billed headers. An MCP server supplies take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients.

See the ScreenshotNeo API documentation for parameters. A direct cURL request is:

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

Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

It also supports full-page captures with lazy images, CSS-selector elements, dark mode, device presets, retina scale, PDF paper and page-range controls, custom CSS or JavaScript, clicks, selector or network-idle waits, request blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, chosen cache TTLs, signed image links, asynchronous webhooks, bulk capture of up to 100 URLs per call, a usage API, and an OpenAPI specification. The parameter names used by other screenshot APIs also work for easier migration.

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

The Free plan includes 1,000 screenshots each month with no card. Paid plans start at $5 for 3,000 shots; yearly billing provides two months free, and every feature is included on every plan. Create a free ScreenshotNeo account to try it without a card.

Best Value
Sale
LAPGEAR Home Office Lap Desk – Pink, Fits 15.6” Laptops
  • Spacious Design: Measuring 21.1" wide and 12" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
  • Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy laptop support with the integrated device ledge.
  • Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
  • Durable Surface: Work with confidence on our lap desk's solid surface, featuring a blush pink color, ensuring optimal air circulation to prevent your laptop from overheating.
  • On-the-Go Convenience: With an integrated handle and lightweight design (2.14 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.

Frequently asked questions

Is pdfinfo a Python module?

No. It is an executable supplied by Poppler. Python libraries can invoke it, but they do not replace the system utility.

Why does the error mention page count?

Libraries commonly call pdfinfo first to read document metadata, including the number of pages, before rendering those pages.

Do I need Poppler if I only extract text from a PDF?

Not necessarily. The dependency applies to workflows and libraries that invoke Poppler tools; a different PDF parser may use another implementation.

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

Frequently Asked Questions

Can I solve this by reinstalling only pdf2image?

No. pdf2image is a Python wrapper; install Poppler’s utilities separately and make pdfinfo visible to the executing environment.

What should I do after adding a Windows PATH entry?

Close and reopen the shell, IDE, notebook server, or service that launches your code, then run Get-Command pdfinfo again.

Why does it work locally but fail in production?

Production may use a different container, worker, notebook kernel, or service environment. Test command discovery inside that exact runtime and install or configure Poppler there.

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.

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