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

wkhtmltopdf saves the PDF to the output-file path you give it as the final command-line argument. It does not use one universal Downloads, Documents, or application folder. For example, wkhtmltopdf https://example.com report.pdf writes report.pdf relative to the process’s current working directory. To specify the destination unambiguously, give an absolute path, such as wkhtmltopdf https://example.com /tmp/report.pdf.

How to tell where the PDF was saved

Read the command from left to right: the input comes first, and the output filename comes last. The official usage synopsis is wkhtmltopdf [GLOBAL OPTION]... [OBJECT]... <output file>. Its examples include wkhtmltopdf http://www.google.com google.pdf and wkhtmltopdf my.html my.pdf. In each case, the final argument names the output file.

With a relative filename such as report.pdf, the path is resolved from the working directory of the process that ran the command. The manual specifies the output argument, not a universal working directory for every operating system, shell, IDE, scheduled task, container, or application service. A relative path therefore does not necessarily mean the directory you are currently viewing in a file manager.

Relative output path

In this command, report.pdf is a relative path:

wkhtmltopdf https://example.com report.pdf

Find the working directory of the shell or process that launched wkhtmltopdf; that is where the relative filename is resolved. If a script or service launches the command, check the working directory configured for that process, rather than assuming it matches your interactive terminal.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
PDF Converter Ultimate - Convert PDF files into Word, Excel, PowerPoint and others - PDF converter software with OCR recognition compatible with Windows 11 / 10 / 8.1 / 8 / 7
  • Convert your PDF files into Word, Excel & Co. the easy way
  • Convert scanned documents thanks to our new 2022 OCR technology
  • Adjustable conversion settings
  • No subscription! Lifetime license!
  • Compatible with Windows 11, 10, 8.1, 7 - Internet connection required

Absolute output path

An absolute path identifies the intended destination directly. For example:

wkhtmltopdf https://example.com /tmp/report.pdf

Use the equivalent absolute path for your operating system and choose a directory that already exists and is writable by the account running the command. This removes uncertainty about which working directory the process uses.

Save the PDF in a specific folder

  1. Choose the destination directory. Confirm that the directory exists and that the user running wkhtmltopdf can write to it.
  2. Put the destination filename last. Use the full path after the input URL or HTML file. For example: wkhtmltopdf https://example.com /tmp/report.pdf.
  3. Run the command in the same environment that needs the file. If a script or service runs it, verify the path and permissions from that process’s perspective.
  4. Check the exact filename and directory. Look for the named output file in the specified destination, not in a presumed Downloads or Documents folder.

For a local HTML input, the same output rule applies:

Rank #2
Doxillion Free Document Converter – Converts DOCX, DOC, PDF, WPS and Many More Files Quickly [Download]
  • Convert over 50 document file formats.
  • Preview your files from Doxillion before converting them.
  • Use batch conversion to convert thousands of files at once.
  • Enjoy an easy-to-use, intuitive interface with a Drag and Drop file option.
  • Burn your converted or original files directly to disc.
wkhtmltopdf my.html /tmp/my.pdf

The input is my.html; the last argument, /tmp/my.pdf, is the requested output path. If the command uses a relative input or output path, each is interpreted relative to the process’s working directory.

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

What changes when wkhtmltopdf is called through an API or framework?

The command-line rule does not automatically describe every integration. A library may return PDF data to its caller or keep it in memory, while a web framework may send a PDF in an HTTP response or save it using its own configuration. Identify which interface is producing the PDF before searching the local filesystem.

C API

In the official C API, the out setting controls output. The API reference says that - sends the PDF to standard output, while an empty value stores it in a buffer. In those cases, do not expect a regular file at a named path: the output is directed elsewhere. Check the API call’s out value and how the application consumes stdout or the buffer.

Rank #3
PDF Extra Ultimate | Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Yearly License | 1 Windows PC & 2 Mobile Devices | 1 User
  • EDIT text, images & designs in PDF documents. ORGANIZE PDFs. Convert PDFs to Word, Excel & ePub.
  • READ and Comment PDFs – Intuitive reading modes & document commenting and mark up.
  • CREATE, COMBINE, SCAN and COMPRESS PDFs
  • FILL forms & Digitally Sign PDFs. PROTECT and Encrypt PDFs
  • 1 Year License for 1 Windows & 2 Mobile (Android and/or iOS) devices.

Framework wrapper

A wrapper may define a separate save path or may stream the generated PDF to a client. For example, PDFKit documents a PDFKit-save-pdf header whose value is the path where the generated PDF is written. That is wrapper-specific behavior; check the integration’s own configuration rather than assuming the command-line destination rule applies unchanged.

Troubleshooting a PDF that seems missing

The command used a short filename

If the output argument was simply report.pdf, locate the process’s current working directory. Then rerun with an absolute destination path so the result is not dependent on that directory.

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

The command ran from a script or service

The process may have a different working directory from the terminal or file browser you are using. Inspect the launch configuration and the process’s working directory. If you control the command, replace the relative output filename with an absolute one.

Rank #4
PDF Extra Lifetime - Professional PDF Editor - Best Adobe Acrobat Pro Alternative - Lifetime License for Windows PC
  • Perfect Adobe Acrobat Pro alternative – lifetime license for Windows 10 and 11.
  • EDIT text, images, pages, hyperlinks, designs in PDF documents. ORGANIZE PDFs.
  • READ and Comment on PDFs – Intuitive reading modes & document commenting and mark up tools!
  • CREATE, COMBINE, SCAN and COMPRESS PDFs.
  • FILL forms & Digitally Sign PDFs. Work with Digital certificates

The target directory does not exist or is not writable

Confirm that the destination directory exists and that the account running the command has permission to write there. Choose an existing writable directory, then rerun with its absolute path as the final argument.

The PDF went to stdout or a buffer

If the application calls the C API, inspect the out setting. A value of - sends output to standard output; an empty value stores it in a buffer. Follow the application’s handling of that output instead of searching for a file that was never requested.

A wrapper handles the response

If a framework or language wrapper is involved, check whether it streams PDF bytes to the caller or sets a separate save path. Use that integration’s documented behavior to determine where the file is written—or whether it is written to disk at all.

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.
Best Value
Doxillion Free Document Converter for Mac – Converts DOCX, DOC, PDF, WPS and Many More Files Quickly [Download]
  • Convert over 50 document file formats.
  • Preview your files from Doxillion before converting them.
  • Use batch conversion to convert thousands of files at once.
  • Enjoy an easy-to-use, intuitive interface with a Drag and Drop file option.
  • Burn your converted or original files directly to disc.
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 goal is to capture a webpage as an image or PDF rather than to find a file produced by wkhtmltopdf, ScreenshotNeo is a separate website screenshot API and MCP server for developers. It does not change where wkhtmltopdf writes files.

For a one-request website screenshot, use this cURL example; the API documentation is at ScreenshotNeo’s documentation:

Quick Recap

Bestseller No. 1
PDF Converter Ultimate - Convert PDF files into Word, Excel, PowerPoint and others - PDF converter software with OCR recognition compatible with Windows 11 / 10 / 8.1 / 8 / 7
PDF Converter Ultimate - Convert PDF files into Word, Excel, PowerPoint and others - PDF converter software with OCR recognition compatible with Windows 11 / 10 / 8.1 / 8 / 7
Convert your PDF files into Word, Excel & Co. the easy way; Convert scanned documents thanks to our new 2022 OCR technology
$29.99
Bestseller No. 2
Doxillion Free Document Converter – Converts DOCX, DOC, PDF, WPS and Many More Files Quickly [Download]
Doxillion Free Document Converter – Converts DOCX, DOC, PDF, WPS and Many More Files Quickly [Download]
Convert over 50 document file formats.; Preview your files from Doxillion before converting them.
Bestseller No. 3
PDF Extra Ultimate | Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Yearly License | 1 Windows PC & 2 Mobile Devices | 1 User
PDF Extra Ultimate | Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Yearly License | 1 Windows PC & 2 Mobile Devices | 1 User
READ and Comment PDFs – Intuitive reading modes & document commenting and mark up.; CREATE, COMBINE, SCAN and COMPRESS PDFs
$83.88
Bestseller No. 4
PDF Extra Lifetime - Professional PDF Editor - Best Adobe Acrobat Pro Alternative - Lifetime License for Windows PC
PDF Extra Lifetime - Professional PDF Editor - Best Adobe Acrobat Pro Alternative - Lifetime License for Windows PC
Perfect Adobe Acrobat Pro alternative – lifetime license for Windows 10 and 11.; EDIT text, images, pages, hyperlinks, designs in PDF documents. ORGANIZE PDFs.
$99.99
Bestseller No. 5
Doxillion Free Document Converter for Mac – Converts DOCX, DOC, PDF, WPS and Many More Files Quickly [Download]
Doxillion Free Document Converter for Mac – Converts DOCX, DOC, PDF, WPS and Many More Files Quickly [Download]
Convert over 50 document file formats.; Preview your files from Doxillion before converting them.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo accepts cookie or consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and each response says which page verdict and billing status applied. Its MCP server gives AI agents tools for screenshots, page information, and PDF capture. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan.

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.