# DrawFlags Enum

> Enumeration DrawFlags.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/DrawFlags
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

**Namespace:** `Datalogics::PDFL`

## Values

- `DoLazyErase = 1`: Erase the page while rendering only as needed.
- `UseAnnotFaces = 64`: Draw annotation appearances.
- `IsPrinting = 128`: The page is being printed.
- `DisplayOverPrintPreview = 256`: Display overprint preview.
- `UseTrapAnnots = 8192`: Use trap network annotations.
- `DirectlyImposed = 16384`: Directly imposed page.
- `IsPSPrinting = 32768`: PostScript printing.
- `EmitPageGroup = 65536`: Emit a page group.
- `UsePrinterMarkAnnots = 131072`: Use printer's mark annotations.
- `PassOPItoAGMPort = 262144`: Pass open prepress interface (OPI) to AGM port.
- `PassMetadatatoAGMPort = 524288`: Pass metadata to AGM port.
- `PassOCtoAGMPort = 1048576`: Pass optional content to AGM port.
- `DoNotDownloadFonts = 4194304`: Do not download fonts during rendering.

  Use this flag to prevent fonts from being downloaded/named to the output. Active when writing GDI output, such as to a metafile or printer on Windows.
- `WritingToEMF = 4194304`: Indicate that the drawing is writing to an Enhanced MetaFile.

  This prevents fonts from being downloaded, but may advise other flags in the future.
- `DoNotSubstituteWorkingSpaces = 8388608`: Do not substitute working spaces.
- `SwapComponents = 16777216`: Render colors in BGR order rather than RGB. It is only valid for calls to Page.DrawContents and only when outputing to an RGB colorspace.
- `SuppressRasterAlpha = 33554432`: Suppress raster alpha.
- `WorkingSpacesOnlyForChange = 67108864`: If this is set, only use a working space instead of a device space if the process color model of the target device is different than that of the source.
- `UseStampAnnotsOnly = 134217728`: If set, only consider Stamp annotations. This overrides UseAnnotFaces.
- `ForceGDIPort = 268435456`: If set, this forces the window draw code to attempt to use GDI instructions internally instead of assuming the incoming Platform device context contains enough information to allow APDFL to make a useful determination. Only honored on Windows. Useful when drawing to a window during print preview, when the supplied hDC is for the screen and does not allow APDFL to adequately instantiate drawing bounds.
- `IsPrintPreviewing = 268435456`: Same as ForceGDIPort.
- `OptimizeForInteractive = 536870912`: Set this flag for interactive viewers where the same PDF page may be re-drawn multiple times for viewing. This flag will allow re-drawing a PDF page (to change the positioning, zoom level or active smoothing & antialiasing, for example) to reuse some data elements from previous drawing operations, and will invoke a separate runtime thread for page operator parsing. However, this will increase the memory used for page display if enabled.
