Thanks for the replies, I will definitely check out the solutions that you suggested.
Right now, I am playing around with this
PDFFlow library.
I added it to my console app through NuGet Package Manager, it generates PDF files pretty easily, without much code.
I don't even need to use any System.IO methods. The library provides its own methods, that are named pretty straightforward, like this:
After running the console app, I get a legit PDF file inside Debug folder that can be opened in any viewer.