Skip to content

Commit

Permalink
minifixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianMindee committed Oct 10, 2024
1 parent 01956ac commit 68da5da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mindee/Pdf/PdfCompressor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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++)
{
Expand All @@ -68,6 +69,5 @@ private static void ProcessSinglePage(IDocReader docReader, SKDocument document,
PdfUtils.DrawPageContent(canvas, resizedBitmap, pageReader, disableSourceText);
document.EndPage();
}

}
}

0 comments on commit 68da5da

Please sign in to comment.