Quantcast
Viewing latest article 44
Browse Latest Browse All 55

Answer by HoldOffHunger for wkhtmltopdf, 0.12.6, Warning: Blocked access to file

The full, complete solution is:

wkhtmltopdf.exe --enable-local-file-access "E:\INPUT-FILE.html" "E:\output-file.pdf"

CRITICAL: It's important to put it in this order. Even though --enable-local-file-access is a named parameter, which means it can be identified anywhere in a command, the order is necessary.

Consider the currently-accepted answer: Merely "add on" the parameter. That simply doesn't work. And you'll get this result if you attempt using it:

Loading pages (1/6)Warning: Blocked access to file E:/gutenberg/metro_files/illusc.jpgError: Failed to load about:blank, with network status code 301 and http status code 0 - Protocol "about" is unknown

Viewing latest article 44
Browse Latest Browse All 55

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>