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

To see why a wkhtmltopdf conversion is failing, run it without -q or --quiet. The wkhtmltopdf 0.12.6 manual documents info as the default log level; quiet mode is equivalent to --log-level none and suppresses that output. Add --debug-javascript separately when the page depends on scripts. First record your installed version and build, because the documented options may not match every packaged build.

What “verbose output” means in wkhtmltopdf

The manual for wkhtmltopdf 0.12.6 with patched Qt documents four values for --log-level: none, error, warn, and info. Its default is already info. There is no documented debug log level in that list, so adding --log-level debug is not the documented way to get more detail.

The important diagnostic step is usually to stop suppressing output. The compatibility switches -q and --quiet are equivalent to --log-level none. Remove them from your command or wrapper, then run the same input again. You can choose a narrower documented level when appropriate, but begin with the default information-level output so you do not discard clues before you know what is failing.

The commands below use switches documented in the 0.12.6 manual. They are examples, not claims that a particular conversion was run. Verify your own executable and build before relying on an option.

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.
#1 Best Overall
PDF Extra 2024| Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Lifetime License | 1 Windows PC | 1 User [PC Online code]
  • 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
  • LIFETIME License for 1 Windows PC or Laptop. 5GB MobiDrive Cloud Storage Included.

Start with a reproducible baseline

Record the installed build and operating system

Before changing flags, run:

wkhtmltopdf --version

Also record the operating system and its version. The project’s support instructions request both when reporting a problem. The reviewed manual identifies itself as version 0.12.6 with patched Qt; the project’s downloads page calls 0.12.6 the stable series and dates that release to June 11, 2020. That is not proof that your system has the same build or that every package exposes identical options.

Rerun without quiet mode and retain the output

Use the simplest command that reproduces the problem, leaving out -q and --quiet:

wkhtmltopdf --log-level info input.html output.pdf

To save the command’s combined standard output and standard error in a file in a POSIX-style shell, use:

wkhtmltopdf --log-level info input.html output.pdf > wkhtmltopdf.log 2>&1

This shell redirection captures both output streams; it does not imply that every build writes each diagnostic to a particular stream. Keep the full command, the log, the input files, and the resulting PDF together. If you normally invoke wkhtmltopdf through an application, wrapper, or service, capture the actual arguments used there too; a standalone command may not reproduce the same environment.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
MobiPDF Lifetime - Professional PDF Editor for Windows | Edit, Sign & Convert PDFs | Best Adobe Acrobat Pro Alternative | Lifetime License
  • Edit PDFs with Ease. Modify text, images, and layouts directly within your PDF documents.
  • Convert & Organize. Export PDFs to Word, Excel, or ePub, and organize files with ease.
  • Read & Annotate. Enjoy intuitive reading modes and powerful tools to comment, highlight, and mark up PDFs.
  • Create & Manage PDFs. Create new PDFs, combine multiple files, scan documents, and compress for easy sharing.
  • Fill & Sign Forms. Complete forms and digitally sign documents with secure e-signature tools.

Choose the diagnostic switch that matches the symptom

Question Relevant option What it changes
Are general conversion messages being hidden? --log-level info or omit the option Uses the documented default information level. The documented levels are none, error, warn, and info.
Does the page depend on JavaScript? --debug-javascript Enables JavaScript debugging output; it is separate from the general log-level setting.
Is a page load failing? --load-error-handling Controls handling of main-page loading errors. The documented choices are abort, ignore, and skip; the default is abort.
Is a media resource failing? --load-media-error-handling Controls media-loading errors separately. Its documented default is ignore.
Does local HTML reference local files? --allow and local-file-access switches Controls access to local paths; see the local-file section below.

JavaScript-dependent pages

When you suspect script execution is involved, add the dedicated JavaScript switch:

wkhtmltopdf --log-level info --debug-javascript input.html output.pdf

If content appears only after a delay, --javascript-delay <msec> controls the wait after page loading; the manual’s documented default is 200 ms. If the page exposes a readiness state, --window-status <windowStatus> waits for window.status to match the specified value. For example, the option shape is --window-status ready, where ready must be the status your page sets.

These switches can help investigate timing or script-related behavior, but they do not guarantee that a modern web application will render correctly. A useful test is to compare the page with JavaScript enabled against a minimal static version containing the expected content. If the static version converts but the script-driven page does not, keep that distinction in the reproduction rather than assuming a delay alone will fix it.

Main-page and media loading

Keep the two error-handling options distinct. --load-error-handling concerns page loading and defaults to abort; --load-media-error-handling concerns media and defaults to ignore. If the output is incomplete, first identify whether the failing item is the main page, a stylesheet, an image, or another resource, then review the corresponding behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Adobe Acrobat Pro | PDF Software | Convert, Edit, E-Sign, Protect | PC/Mac Online Code | Activation Required
  • Create and edit PDFs. Collaborate with ease. E-sign documents and collect signatures. Get everything done in one app, wherever you go.
  • Edit text and images without jumping to another app.
  • E-sign documents or request e-signatures on any device. Recipients don’t need to log in to e-sign.
  • Convert PDFs to editable Microsoft Word, Excel, or PowerPoint documents.
  • Share PDFs for collaboration. Commenting features make it easy for reviewers to comment, mark up, and annotate.

Changing an error policy can let a conversion continue while content is skipped or omitted. That may be useful for isolating a failure, but it does not repair the resource or establish that the output is complete. Preserve the original run and its diagnostics before changing handling to ignore or skip.

Check local-file access carefully

A local input file can refer to other files by local paths—for example, stylesheets, images, or fonts. If those resources do not appear, inspect the local-file access settings and whether the required paths are allowed. The manual documents:

  • --disable-local-file-access to disable local file access.
  • --enable-local-file-access to enable it.
  • --allow <path>, which can be repeated to allow specific paths.

Use only the access needed for the input. Do not broadly enable access as a routine workaround, particularly when the HTML or JavaScript is not fully trusted. 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 it is running on!” Treat conversion of user-supplied documents as a security boundary, not just a rendering problem.

Reduce the failure to a test case

  1. Preserve the original run. Keep the exact command, all arguments, the full diagnostic output, the input, and the output or failure result.
  2. Record the environment. Include the output of wkhtmltopdf --version and the operating system and version.
  3. Reduce the input. Remove unrelated page content and assets until you have a small HTML/CSS/JavaScript case that still duplicates the issue. Keep any resource paths or script timing that appear relevant.
  4. Run the reduced case with the same build. Change one relevant option at a time so the difference in behavior remains interpretable.
  5. Report the problem with evidence. The project asks for the version, operating system and version, a detailed description of the issue, and a test case that duplicates it.

A useful reproduction is not merely a page that looks similar: it should preserve the conditions needed to trigger the same failure. If you cannot share the original page, provide a reduced case that demonstrates the behavior without confidential content or credentials.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting common diagnostic dead ends

The command produces no useful messages

Check whether a calling script or wrapper adds -q or --quiet. Remove it and rerun at the default info level. Also confirm that the command you are inspecting is the command actually executed by the application, not just a separate terminal test.

The page is blank or content is missing

Do not infer a root cause from the appearance alone. Inspect the retained output and determine whether the main page, a media resource, JavaScript-driven content, or a local file is involved. Check the corresponding loading or access option family; changing an error policy may hide the symptom by continuing, without making the missing content load.

Adding a delay does not make the page complete

--javascript-delay changes a wait duration, while --window-status waits for a named page status. Neither proves that all page activity has finished. Use --debug-javascript to investigate script behavior and make a reduced case. The documented switches do not promise compatibility with every modern web application.

The option is rejected or behaves differently

Check the actual wkhtmltopdf --version output and build, then compare the option with that build’s documentation. The manual described here is specifically for 0.12.6 with patched Qt, and the available evidence does not establish identical features across all system packages. Do not assume an option failure has one universal cause or meaning.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
PDF Pro 3 - PDF editor to create, edit, convert and merge PDFs - 100% Compatible with Adobe Acrobat - for Windows 11, 10, 8.1, 7
  • ALL-IN-ONE SOLUTION – read, edit, convert, merge and protect your PDF files
  • MAXIMUM FUNCIONALITY – create interactive forms, compare PDFs, bates numbering, find and replace text or colors, convert documents, OCR engine, comment, highlight, fill out and print forms, document protection and others
  • EASY TO INSTALL AND USE – well-structured user-interface, in-program instructions, free tech support whenever you need it
  • GREAT VALUE FOR MONEY - why spend a fortune if you can have maximum functionality at a reasonable price - this also fits the requirements of companies very well

A conversion continues but the PDF is still wrong

Review whether an error-handling setting was changed from its default. Continuing through a load error can leave the output incomplete. Re-run with the original policy and retained logs to preserve evidence of the underlying failure before deciding whether a different policy is appropriate for your use case.

Or skip the browser setup

If your goal is a clean image of a webpage rather than a PDF conversion, ScreenshotNeo can return a screenshot through one GET request. It is not a replacement for diagnosing wkhtmltopdf when you specifically need its PDF output.

cURL example (see the ScreenshotNeo documentation):

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}`);

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 are not billed, and the response identifies the page verdict and billing status. Its MCP server provides screenshot tools for AI agents. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

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

Sign up for 1,000 free screenshots a month, with no card required.

Limits to keep in mind

Verbose output is evidence for narrowing a failure, not a universal decoder for every warning. The documented material does not map every message string to a single root cause or establish universal exit-code meanings for every build. Avoid treating one line as a definitive diagnosis without reproducing the behavior and checking the relevant resource, script, or access path.

Frequently Asked Questions

Does wkhtmltopdf have a `–log-level debug` option?

The 0.12.6 manual reviewed here lists `none`, `error`, `warn`, and `info`; it does not list `debug`. Use `–debug-javascript` for JavaScript debugging output.

What details should I include in a wkhtmltopdf bug report?

Include the executable version, operating system and version, a detailed description, and a test case that reproduces the issue.

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

Quick Recap

Bestseller No. 1
PDF Extra 2024| Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Lifetime License | 1 Windows PC | 1 User [PC Online code]
PDF Extra 2024| Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Lifetime License | 1 Windows PC | 1 User [PC Online code]
READ and Comment PDFs – Intuitive reading modes & document commenting and mark up.; CREATE, COMBINE, SCAN and COMPRESS PDFs
$99.99
Bestseller No. 2
MobiPDF Lifetime - Professional PDF Editor for Windows | Edit, Sign & Convert PDFs | Best Adobe Acrobat Pro Alternative | Lifetime License
MobiPDF Lifetime - Professional PDF Editor for Windows | Edit, Sign & Convert PDFs | Best Adobe Acrobat Pro Alternative | Lifetime License
Edit PDFs with Ease. Modify text, images, and layouts directly within your PDF documents.; Convert & Organize. Export PDFs to Word, Excel, or ePub, and organize files with ease.
$99.99
Bestseller No. 3
Adobe Acrobat Pro | PDF Software | Convert, Edit, E-Sign, Protect | PC/Mac Online Code | Activation Required
Adobe Acrobat Pro | PDF Software | Convert, Edit, E-Sign, Protect | PC/Mac Online Code | Activation Required
Edit text and images without jumping to another app.; Convert PDFs to editable Microsoft Word, Excel, or PowerPoint documents.
$239.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
PDF Pro 3 - PDF editor to create, edit, convert and merge PDFs - 100% Compatible with Adobe Acrobat - for Windows 11, 10, 8.1, 7
PDF Pro 3 - PDF editor to create, edit, convert and merge PDFs - 100% Compatible with Adobe Acrobat - for Windows 11, 10, 8.1, 7
ALL-IN-ONE SOLUTION – read, edit, convert, merge and protect your PDF files
$29.99

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.