{"id":22115750,"url":"https://github.com/yeslogic/azure-prince-example","last_synced_at":"2026-05-05T12:34:02.753Z","repository":{"id":66590745,"uuid":"297490288","full_name":"yeslogic/azure-prince-example","owner":"yeslogic","description":"Example project using Prince to generate a PDF response that can be deployed as an app service to Microsoft Azure","archived":false,"fork":false,"pushed_at":"2021-10-28T05:06:34.000Z","size":12839,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":12,"default_branch":"master","last_synced_at":"2026-02-14T05:20:54.285Z","etag":null,"topics":["azure","csharp","dotnet-core","pdf","prince"],"latest_commit_sha":null,"homepage":"","language":"Max","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yeslogic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-22T00:08:29.000Z","updated_at":"2023-02-02T00:09:48.000Z","dependencies_parsed_at":"2023-05-29T11:15:58.131Z","dependency_job_id":null,"html_url":"https://github.com/yeslogic/azure-prince-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yeslogic/azure-prince-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeslogic%2Fazure-prince-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeslogic%2Fazure-prince-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeslogic%2Fazure-prince-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeslogic%2Fazure-prince-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeslogic","download_url":"https://codeload.github.com/yeslogic/azure-prince-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeslogic%2Fazure-prince-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["azure","csharp","dotnet-core","pdf","prince"],"created_at":"2024-12-01T12:17:45.011Z","updated_at":"2026-05-05T12:34:02.745Z","avatar_url":"https://github.com/yeslogic.png","language":"Max","funding_links":[],"categories":[],"sub_categories":[],"readme":"Prince Azure Example\n====================\n\nThis is a Visual Studio 2019 project that demonstrates generating a PDF with\nPrince in C# / ASP.NET Core.  It uses [the Prince C# / .Net Wrapper][dotnet-wrapper].\nIt has been confirmed to work when deployed as an [App Service] on Microsoft\nAzure.\n\n## Contents\n\n* [Deploying to Microsoft Azure](#deploying-to-microsoft-azure)\n* [Debugging](#debugging)\n  * [Logs](#logs)\n  * [Console](#console)\n* [License](#license)\n\n## Deploying to Microsoft Azure\n\nFollow these steps to deploy this project to Microsoft Azure:\n\n1. Clone the repository: `git clone https://github.com/yeslogic/azure-prince-example.git`\n2. Open the project in Visual Studio, selecting the `PrinceApplication1.sln` file.\n3. In the Solution Explorer, right-click on `PrinceApplication1` and choose \"Publish...\".\u003cbr\u003e\n   ![Screenshot of menu shown when right-clicking on PrinceApplication1 in the Solution Explorer](imgs/1-Publish....png)\n4. In the Publish window that appears, select Azure as the Target and click \"Next\".\u003cbr\u003e\n   ![Screenshot of the Publish window showing a list of possible targets](imgs/2-Publish.png)\n5. Choose \"Azure App Service (Windows)\" as the Specific Target.\n   ![Screenshot of the Publish window showing a list of specific targets](imgs/3-Target.png)\n6. Create or sign in to your Azure account.\n   When signed in, click \"Create a new Azure App Service...\".\u003cbr\u003e\n   ![Screeshot of App Service section of publishing workflow](imgs/4-Resource%20group.png)\n7. Pick a name, this will be used as the sub-domain when deployed.\n   E.g. a name of `PrinceApplication2` gets deployed to https://princeapplication2.azurewebsites.net/.\n   Choose a subscription, create or choose an existing resource group, and hosting plan.\n   Click \"Create\", then click \"Finish\".\u003cbr\u003e\n   ![Screenshot of App Service configuration window](imgs/5-Create%20app%20service.png)\n8. Click the Publish button in the main Publish view.\u003cbr\u003e\n   ![Screenshot of main configuration window](imgs/6-Publish!.png)\n9. Your browser should open when publishing completes. Add `/prince` to the URL\n   and you should see a PDF generated by Prince.\n\n## Debugging\n\nTwo tools that are useful for debugging Prince in Azure are the logs\nand the console. This section shows how to use these.\n\n### Sign In and Navigate to Your App Service\n\n1. Sign in to the [Azure portal] and navigate to App Services.\u003cbr\u003e\n   \u003cimg src=\"imgs/portal-app-services.png\" width=\"846\" alt=\"Screenshot of the App Services button on the home page of the Azure portal\"\u003e\n2. Click on the App Service you want to inspect.\u003cbr\u003e\n   \u003cimg src=\"imgs/portal-choose-app-service.png\" width=\"800\" alt=\"Screenshot of the App Services list in the Azure portal\"\u003e\n\n### Logs\n\n#### Enable Logging\n\nLogs from the App Service can be viewed in the Azure portal. However, they\nmust be enabled first:\n\n1. [Sign in and navigate to your App Service](#sign-in-and-navigate-to-your-app-service).\n2. In the side bar click on \"App Service Logs\".\n3. Enable \"Application Logging (Filesystem)\".\n4. Set the Level to \"Information\", and click \"Save\".\u003cbr\u003e\n   \u003cimg src=\"imgs/portal-enable-app-service-logs.png\" width=\"800\" alt=\"Screenshot of the App Service log settings in the Azure portal\"\u003e\n5. Wait for the notification that logging is enabled.\n\n#### View Logs\n\n1. [Sign in and navigate to your App Service](#sign-in-and-navigate-to-your-app-service).\n2. In the side bar click on \"Log stream\". Now when new requests are made you\n   will see the logs.\u003cbr\u003e\n   \u003cimg src=\"imgs/portal-log-stream.png\" width=\"800\" alt=\"Screenshot of the Log stream in the Azure portal\"\u003e\n\n### Console\n\n1. [Sign in and navigate to your App Service](#sign-in-and-navigate-to-your-app-service).\n2. In the side bar click on \"Console\". You can now run commands and inspect the\n   deployed files.\u003cbr\u003e\n   \u003cimg src=\"imgs/portal-console.png\" width=\"800\" alt=\"Screenshot of the Console in the Azure portal\"\u003e\n\n## License\n\nThe source code in this repository is licensed under the [Apache 2.0 license](LICENSE).\n\nThe [Inter font family][Inter] contained in\n[PrinceApplication1/fonts](PrinceApplication1/fonts) is Copyright 2016-2020 The\nInter Project Authors. \"Inter\" is trademark of Rasmus Andersson.\nThis Font Software is licensed under the SIL\nOpen Font License, Version 1.1.  See\n[PrinceApplication1/fonts/LICENSE](PrinceApplication1/fonts/LICENSE).\n\n[Inter]: https://github.com/rsms/inter\n[dotnet-wrapper]: https://www.princexml.com/doc/server-integration/#the-c-net-wrapper-\n[App Service]: https://azure.microsoft.com/en-us/services/app-service/\n[Azure portal]: https://portal.azure.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeslogic%2Fazure-prince-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeslogic%2Fazure-prince-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeslogic%2Fazure-prince-example/lists"}