Skip to content

Possible to print rendered HTML of local .html files? #24

@Jimadine

Description

@Jimadine

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions