Pages Downloaded. Creating Pdf...
Unhandled exception. System.AggregateException: One or more errors occurred. (Exception of type 'System.OutOfMemoryException' was thrown.)
---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream..ctor(Int32 capacity)
at iText.Kernel.Pdf.PdfStream..ctor(Byte[] bytes, Int32 compressionLevel)
at iText.Kernel.Pdf.Xobject.PdfImageXObject.CreatePdfStream(ImageData image, PdfImageXObject imageMask)
at iText.Kernel.Pdf.Xobject.PdfImageXObject..ctor(ImageData image, PdfImageXObject imageMask)
at iText.Layout.Element.Image..ctor(ImageData img)
at RekhtaDownloader.BookExporter.ExportPdf(Book book) in /home/runner/work/rekhtadownloader/rekhtadownloader/RekhtaDownloader/PdfExporter.cs:line 50
at RekhtaDownloader.BookExporter.DownloadBook(String bookUrl, Int32 taskCount, OutputType output, Int32 imageQuality, CancellationToken token) in /home/runner/work/rekhtadownloader/rekhtadownloader/RekhtaDownloader/PdfExporter.cs:line 25
at Downloader.Program.DownloadBook(String bookUrl, Int32 taskCount, Int32 quality, OutputType outputType, CancellationToken token) in /home/runner/work/rekhtadownloader/rekhtadownloader/Downloader/Program.cs:line 80
at Downloader.Program.<>c__DisplayClass0_0.<<Main>b__0>d.MoveNext() in /home/runner/work/rekhtadownloader/rekhtadownloader/Downloader/Program.cs:line 66
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass79_0.<OnExecute>b__0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Downloader.Program.Main(String[] args) in /home/runner/work/rekhtadownloader/rekhtadownloader/Downloader/Program.cs:line 74