using System; using System.Collections.Generic; using System.Text; namespace PdfiumViewer { /// /// Flags that influence the page rendering process. /// [Flags] public enum PdfRenderFlags { /// /// No flags. /// None = 0, /// /// Render for printing. /// ForPrinting = NativeMethods.FPDF.PRINTING, /// /// Set if annotations are to be rendered. /// Annotations = NativeMethods.FPDF.ANNOT, /// /// Set if using text rendering optimized for LCD display. /// LcdText = NativeMethods.FPDF.LCD_TEXT, /// /// Don't use the native text output available on some platforms. /// NoNativeText = NativeMethods.FPDF.NO_NATIVETEXT, /// /// Grayscale output. /// Grayscale = NativeMethods.FPDF.GRAYSCALE, /// /// Limit image cache size. /// LimitImageCacheSize = NativeMethods.FPDF.RENDER_LIMITEDIMAGECACHE, /// /// Always use halftone for image stretching. /// ForceHalftone = NativeMethods.FPDF.RENDER_FORCEHALFTONE, /// /// Render with a transparent background. /// Transparent = 0x1000, /// /// Correct height/width for DPI. /// CorrectFromDpi = 0x2000 } }