The simplest way to convert PDF to image as of 2024 is using PDFtoImage libary like below. This libary works for dotnet 8.0 as well. example: Read pdf file and save page 1 (index 0) to jpg file. using PDFtoImage; using var pdfStream = File.OpenRead(@”Sample.pdf”); Conversion.SaveJpeg(“image-fileStream.jpg”, pdfStream, 0, options: new(Dpi: 300, Width:1024, Height:null, WithAspectRatio:true)); You… Continue reading Convert PDF to Image in C#
Category: C#
Tools for .Net developers in 2024
Tools Resharper One of the most popular productivity tool for Visual Studio users. The need for Resharper is reduced for the recent few years though. I’m simply so familiar with it and it’s muscle memory now. ChatGPT and GitHub Copilot A LLM based support is key productivity tool for developer since it’s introduced. The more… Continue reading Tools for .Net developers in 2024
How to create a resilient Web API using dotnet and Polly library
Polly is a useful dotnet library to make a web service call resilient by introducing retry, circuit breaker and fallback policy with ease. It is common to add retry logic when a web service call is failed. However, integrating retry, circuit breaker and fallback logic can be tricky. Polly makes it easy. The retry… Continue reading How to create a resilient Web API using dotnet and Polly library
Why you still use Resharper in 2023
Features of Resharper I use most. Instant Search The first thing for me is the solution-wide instant search (Ctrl + T). VS provides search, of course, but it’s slow as it reads when query. But, the Resharper search responds instantly. It feels like using Elastic Search on Visual Studio. By adding “/” after the search… Continue reading Why you still use Resharper in 2023
A DotNet developer’s note on Technology Radar V28
As a new Technology Radar release with a bunch of interesting techs, a few drew my attention. Techniques Applying product management to internal platforms: product mindset includes a roadmap, value to biz, and consumer experience enhancement. CI/CD infrastructure as a service: Our team has been using Jenkins hosted on-prem and started moving to Azure DevOps.… Continue reading A DotNet developer’s note on Technology Radar V28