MicrosoftEdge / MicrosoftEdge/WebView2Samples

Is it possible to run in a Windows Container/App Service to convert HTML to PDFs?

Open
#238 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1k
Forks
521
Avg merge
13m
Merged PRs (30d)
1

Description

Rick Strahl has teased the idea of using WebView2 to create PDFs

I'd like to create an Azure App Service or hosted container to accept html and spit out PDFs.
Currently using itext7, but the HTML doesn't get rendered in the PDF the same and it's causing me a lot of grief.
Ideally, I could create HTML in Edge/Chrome and then send it to a PDF service and have them look exactly the same, using the same rendering engine (I'm looking at you WebView2) and I could host it in Linux, but that is an open issue on Azure and support 100s of requests a minute.

I've started but I have questions

  1. Is this possible?
  2. Are there licensing issues with this approach?
  3. How would I package and deploy this? Would a docker file/image work? Could you provide a pre-made image?
  4. what load could it handle, how big of a server would I need?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or entry points. Start by reviewing the linked WebView2Feedback issue and the repository's existing samples to determine whether this request fits the project. Done would require resolving feasibility, licensing, packaging, deployment, and capacity questions.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, docker
Domain
backend, cloud, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.