diff --git a/PdfiumViewer.Demo/MainForm.cs b/PdfiumViewer.Demo/MainForm.cs index e65cddf..72aab0c 100644 --- a/PdfiumViewer.Demo/MainForm.cs +++ b/PdfiumViewer.Demo/MainForm.cs @@ -157,7 +157,7 @@ private void renderToBitmapsToolStripMenuItem_Click(object sender, EventArgs e) for (int i = 0; i < document.PageCount; i++) { - using (var image = document.Render(i, (int)document.PageSizes[i].Width, (int)document.PageSizes[i].Height, dpiX, dpiY, false)) + using (var image = document.Render(i, (int)document.PageSizes[i].Width, (int)document.PageSizes[i].Height, dpiX, dpiY, PdfRenderFlags.CorrectFromDpi)) { image.Save(Path.Combine(path, "Page " + i + ".png")); }