From 68da5da0cdb38c63431d505989c670dd2d06ed05 Mon Sep 17 00:00:00 2001 From: sebastianMindee Date: Mon, 7 Oct 2024 16:33:18 +0200 Subject: [PATCH] minifixes --- src/Mindee/Pdf/PdfCompressor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mindee/Pdf/PdfCompressor.cs b/src/Mindee/Pdf/PdfCompressor.cs index b8224877..bddcc27b 100644 --- a/src/Mindee/Pdf/PdfCompressor.cs +++ b/src/Mindee/Pdf/PdfCompressor.cs @@ -28,7 +28,7 @@ public static byte[] CompressPdf(byte[] pdfData, int imageQuality = 85, bool for // Note: bypassing the logger since this is **heavily** discouraged. Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine( - "MINDEE WARNING: Found text inside of the provided PDF file. Compression operation aborted."); + "MINDEE WARNING: Found text inside of the provided PDF file. Compression operation aborted since disableSourceText is set to 'true'."); Console.ResetColor(); return pdfData; } @@ -47,7 +47,8 @@ public static byte[] CompressPdf(byte[] pdfData, int imageQuality = 85, bool for } } - private static void ProcessPages(IDocReader docReader, SKDocument document, int imageQuality, bool disableSourceText) + private static void ProcessPages(IDocReader docReader, SKDocument document, int imageQuality, + bool disableSourceText) { for (int i = 0; i < docReader.GetPageCount(); i++) { @@ -68,6 +69,5 @@ private static void ProcessSinglePage(IDocReader docReader, SKDocument document, PdfUtils.DrawPageContent(canvas, resizedBitmap, pageReader, disableSourceText); document.EndPage(); } - } }