# DrawFlags Enum

> Enumeration DrawFlags.

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

**Namespace:** `com::datalogics::PDFL`

## Values

- `DIRECTLY_IMPOSED`: Directly imposed page.
- `DISPLAY_OVER_PRINT_PREVIEW`: Display overprint preview.
- `DO_LAZY_ERASE`: Erase the page while rendering only as needed.
- `DO_NOT_DOWNLOAD_FONTS`: 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.
- `DO_NOT_SUBSTITUTE_WORKING_SPACES`: Do not substitute working spaces.
- `EMIT_PAGE_GROUP`: Emit a page group.
- `FORCE_GDIPORT`: 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.
- `IS_PRINT_PREVIEWING`: Same as ForceGDIPort.
- `IS_PRINTING`: The page is being printed.
- `IS_PSPRINTING`: PostScript printing.
- `OPTIMIZE_FOR_INTERACTIVE`: 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.
- `PASS_METADATATO_AGMPORT`: Pass metadata to AGM port.
- `PASS_OCTO_AGMPORT`: Pass optional content to AGM port.
- `PASS_OPITO_AGMPORT`: Pass open prepress interface (OPI) to AGM port.
- `PRESERVE_PRIMARIES_K`: Preserve the K channel of CMYK colors when rendering to a CMYK target colorspace. NOTE: The target colorspace must be CMYK and the source color must be CMYK or have an Alternate ColorSpace of CMYK in order for this flag to have an effect.
- `SUPPRESS_RASTER_ALPHA`: Suppress raster alpha.
- `SWAP_COMPONENTS`: 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.
- `USE_ANNOT_FACES`: Draw annotation appearances.
- `USE_PRINTER_MARK_ANNOTS`: Use printer's mark annotations.
- `USE_STAMP_ANNOTS_ONLY`: If set, only consider Stamp annotations. This overrides UseAnnotFaces.
- `USE_TRAP_ANNOTS`: Use trap network annotations.
- `WORKING_SPACES_ONLY_FOR_CHANGE`: 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.
- `WRITING_TO_EMF`: Indicate that the drawing is writing to an Enhanced MetaFile.

  This prevents fonts from being downloaded, but may advise other flags in the future.
