Saving pdfsharp pdf to stream throwing error
I’m using PDFsharp 6.1.1 and want to return a pdf in my controller.
PdfSharpCore generates huge PDF files despite resizing the image first
I am trying to convert images to PDF (scaling to full page), while keeping the file size moderate. I understand that PdfSharpCore embeds the full image, so it has to be resized first. Consider the following code (can be run directly from LinqPad):