{"id":15060876,"url":"https://github.com/rasheedaboud/examplehtmltopdf","last_synced_at":"2026-02-25T12:34:21.492Z","repository":{"id":219466240,"uuid":"749124739","full_name":"rasheedaboud/ExampleHtmlToPdf","owner":"rasheedaboud","description":".Net HTML to PDF","archived":false,"fork":false,"pushed_at":"2024-01-27T16:51:24.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T05:04:08.226Z","etag":null,"topics":["csharp","fsharp","html","html-pdf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rasheedaboud.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-27T16:48:28.000Z","updated_at":"2024-01-27T16:50:04.000Z","dependencies_parsed_at":"2024-01-27T17:51:42.975Z","dependency_job_id":null,"html_url":"https://github.com/rasheedaboud/ExampleHtmlToPdf","commit_stats":null,"previous_names":["rasheedaboud/examplehtmltopdf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rasheedaboud/ExampleHtmlToPdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasheedaboud%2FExampleHtmlToPdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasheedaboud%2FExampleHtmlToPdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasheedaboud%2FExampleHtmlToPdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasheedaboud%2FExampleHtmlToPdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rasheedaboud","download_url":"https://codeload.github.com/rasheedaboud/ExampleHtmlToPdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasheedaboud%2FExampleHtmlToPdf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259763077,"owners_count":22907408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","fsharp","html","html-pdf"],"created_at":"2024-09-24T23:05:46.916Z","updated_at":"2025-10-30T23:33:11.447Z","avatar_url":"https://github.com/rasheedaboud.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML to PDF\n\nIm sure everyone at some point has found the need to render html to pdf. I though it could be useful to show a simple example of how to this using azure functions. Setup for this function app is 100% stolen from Anthony Chu's [blog post](https://anthonychu.ca/post/azure-functions-puppeteer-pdf-razor-template/). I've used this with great success both internally to my company and for external tools as well. The cold start is not an issue for us, so we run it on a consumption plan behind API management gateway. If you want something that boots up faster you can always publish it to a premium plan.\n\nI will try an keep this example up to date with .Net LTS release cycles as a reference to myself and anyone else who finds this useful.\n\nIts also very trivial to write the same login in F# if that your jam! 😉\n\n## Running the App\n\n1. Install latest [Azure Function Tools](https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=linux%2Cisolated-process%2Cnode-v4%2Cpython-v2%2Chttp-trigger%2Ccontainer-apps\u0026pivots=programming-language-csharp).\n2. Install [.Net 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)\n3. Clone the repo `gh repo clone rasheedaboud/ExampleHtmlToPdf`.\n4. `cd` into the project folder and run `dotnet build` and `func host start`.\n\n## Caveats\n\n1. This only work on linux. When you deploy you app make sure you do not deploy wot windows machine.\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasheedaboud%2Fexamplehtmltopdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frasheedaboud%2Fexamplehtmltopdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasheedaboud%2Fexamplehtmltopdf/lists"}