docs
PuppeteerSharp
Our great sponsors
docs | PuppeteerSharp | |
---|---|---|
39 | 16 | |
4,081 | 3,111 | |
1.3% | 2.6% | |
10.0 | 9.2 | |
5 days ago | about 15 hours ago | |
Dockerfile | C# | |
Creative Commons Attribution 4.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
docs
-
DevDocs
MS docs ar now on github. Licence lists "CC-BY-4 and MIT licence found" https://github.com/dotnet/docs/tree/main
Yeah, I saw that devdocs and the like don't include what was previously not cross platform and not popular for linux guys: C#, msbuild.
- Fixing circular references in object serialization (Blazor WebAssembly)
-
The Case for C# and .NET
You might be able to do something with this: https://github.com/dotnet/docs
The browsy bits seem to require a server, but the documents themselves are markdown.
- Method overloading error in 2022 and I don't know why.
-
My first Milestone
Use a coding style for all files and all methods. (see or this or the Framework design guidelines)
-
.Net 6.0 - The new Program.cs "flat" style - too implicit/magic?
But no... they don't want to listen. Just take a look at the GitHub issue https://github.com/dotnet/docs/issues/27420: people are asking for an option to choose, but they don't receive any genuine answer, only someone who asks them "Why?" repeatedly, without offering any solution.
I have no idea what was in there mind to force this minimal agenda. If you look at this issue on github https://github.com/dotnet/docs/issues/27420 you will see that there is not much support for this and a lot of disappointed people, myself included. This also transfers to asp.net.
-
Learning C# in 2022. Absolute beginner and wants to be taught like a 5 year old.
While you're at it, consider leaving feedback for the C# team. It'd be nice for them to start feeling the pain newbies feel.
-
Microsoft recommends that you allocate an IEnumerable and IEnumerator each time you call Equals or GetHashCode().
The docs are on GitHub. If you think there's an improvement to make here, please submit a PR.
-
Last C# PDF doc/tutorial by Microsoft. Tomorrow, the PDF generation feature will be officially retired. So, I took this opportunity to archive this format. (Up to .NET 6)
This is less meaningful than you think. The docs are open source on GitHub and they are written in markdown. You can just clone it and keep a local copy. Unless your goal is to print them, the markdown version of the docs is massively superior.
PuppeteerSharp
-
What do .NET devs use for web scraping these days?
PuppeteerSharp
-
(Free) Open-source PDF Generation/Export
Otherwise, any pdf to hml chromium based solution hosted via docker, like gotenberg](https://github.com/gotenberg/gotenberg) or browserless.io(which is free if you create open source). Generating pdfs from html directly in .NET was always a pain. Wkhtml (and wrappers that use it) uses WebKit and comes with a load of issues of its own, similar to running and styling anything in Safari. Using chromium based engine saves a lot of time as it's the most popular way of doing it these days. You can also use puppeteer-sharp with local chromium if you host your app on something that allows it(f.e. not Azure Functions).
- A Handlebar and Puppeteer Equivalent in C#?
-
Puppeteer Sharp: Crawl the Web using C# and Headless Chrome
Puppeteer Sharp is a port of the popular Headless Chrome NodeJS API built by Google. Puppeteer Sharp was written in C# and released in 2017 by Darío Kondratiuk to offer the same functionality to .NET developers.
-
HTMLtoPDF
For the actual conversion of html to pdf we use PuppeteerSharp (https://www.puppeteersharp.com ) but you need browserless for that, which requires an api key (don’t know the pricing)
-
Dynamic html parser (alternative of phantomJS)
The README in the GitHub site has been good enough for me: https://github.com/hardkoded/puppeteer-sharp
-
QuestPDF 2022.01 - a new version of the open-source, C# library for generating complex PDF documents with fluent API, now with complex table-layout support 🎉 Please help me make it popular 🚀
Iv'e been using https://github.com/hardkoded/puppeteer-sharp for html to pdf conversion for quite some time with success. (in both .net framework and .net core)
-
Last C# PDF doc/tutorial by Microsoft. Tomorrow, the PDF generation feature will be officially retired. So, I took this opportunity to archive this format. (Up to .NET 6)
Just generate HTML and use https://github.com/hardkoded/puppeteer-sharp to produce a PDF from headless Chrome.
-
Playwright (Test Automation Library) for .NET Is Now Stable
Oh, I didn't know this existed. Definitely going to try this. I'm currently using Puppeteer Sharp (https://github.com/hardkoded/puppeteer-sharp) and something like:
> await page.GotoAsync("https://playwright.dev/dotnet");
> await page.ScreenshotAsync(new PageScreenshotOptions() { Path = "screenshot.png" });
Is broken, if you have background images in CSS the screenshot happens after Page Load is completed but before all CSS images are loaded so you end up not getting backgrounds in the screenshot. The only solution is to try add a delay before taking the screen grab, and it there's any sort of latency then the delay could result in not getting a good screenshot...
-
.NET Core ASP - PDF Generation for hosting on Azure?
Just use something like puppeteer in an azure function.
What are some alternatives?
CefSharp - .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
DinkToPdf - C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
playwright-dotnet - .NET version of the Playwright testing and automation library.
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
HtmlAgilityPack - Html Agility Pack (HAP) is a free and open-source HTML parser written in C# to read/write DOM and supports plain XPATH or XSLT. It is a .NET code library that allows you to parse "out of the web" HTML files.
FlaUI - UI automation library for .Net
playwright-sharp - .NET version of the Playwright testing and automation library. [Moved to: https://github.com/microsoft/playwright-dotnet]
puppeteer - Node.js API for Chrome
docker-headless-vnc-container - Collection of Docker images with headless VNC environments
GotenbergSharpApiClient - .NET C# Client for the Gotenberg API
gotenberg - A developer-friendly API for converting numerous document formats into PDF files, and more!
library - QuestPDF is an open-source, modern and battle-tested library that can help you with generating PDF documents by offering friendly, discoverable and predictable C# fluent API.