I've been testing PrintHtml and have found that when printing HTML files that are stored locally on the filesystem, either by referencing them with file:/// or C:\path.., the raw HTML is printed rather than the rendered HTML. Is this a known issue? I can't think of any workarounds other than running a local web server and fetching the documents with http://localhost/.... In my particular use-case, the HTML is supplied by the return of a REST API, which is saved locally to a file before printing.
Also, and I don't think it's related since it occurs even when printing a remote HTML doc too, but I've noticed that after printing there's a sizeable (hundreds MBs) PrintHtml.exe.*.dmp file in %USERPROFILE%\AppData\Local\CrashDumps. Example command line: PrintHtml.exe -p "Microsoft Print to PDF" -a "80,297" https://www.york.ac.uk/teaching/cws/wws/webpage1.html.
Thanks in advance.
I've been testing PrintHtml and have found that when printing HTML files that are stored locally on the filesystem, either by referencing them with
file:///orC:\path.., the raw HTML is printed rather than the rendered HTML. Is this a known issue? I can't think of any workarounds other than running a local web server and fetching the documents withhttp://localhost/.... In my particular use-case, the HTML is supplied by the return of a REST API, which is saved locally to a file before printing.Also, and I don't think it's related since it occurs even when printing a remote HTML doc too, but I've noticed that after printing there's a sizeable (hundreds MBs)
PrintHtml.exe.*.dmpfile in%USERPROFILE%\AppData\Local\CrashDumps. Example command line:PrintHtml.exe -p "Microsoft Print to PDF" -a "80,297" https://www.york.ac.uk/teaching/cws/wws/webpage1.html.Thanks in advance.