Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 664

Previous Page 663   Index   Next Page 665

Function Reference
Page 664 of 750
SetGStateFlags
Syntax:
void pdfSetGStateFlags(
const PPDF* IPDF,
// Instance pointer
TGStateFlags Flags, // See description
LBOOL Reset)
// See below
typedef UI32 TGStateFlags;
#define gfCompatible
0
// Default
#define gfRestorePageCoords
1
// see below
#define gfRealTopDownCoords
2
// see below
#define gfNativeBlackWhite
4
// Do not convert RGB b/w to gray
#define gfUseImageColorSpace
8
// Use the image color space
#define gfIgnoreICCProfiles
16
// see description below
#define gfAnsiStringIsUTF8
32
// Ansi strings are UTF-8 encoded
#define gfRealPassThrough
64
// Insert JPEG images unchanged
#define gfNoBitmapAlpha
128 // Ignore the alpha channel in bitmaps
#define gfNoImageDuplCheck
256 // Disables duplicate check for images
#define gfNoObjCompression
512 // Disables object compression
The function sets optional flags affecting the graphics state, coordinate handling, as well as color and
image conversion rules. If the parameter Reset is true, the new flags replace current flags. If set to
false, the flags are combined with the current flags.
Flag
Description
gfCompatible
The graphics state is fully compatible to earlier versions of
DynaPDF.
gfRestorePageCoords
If set, the current base coordinate system like bottom or top down is
saved and restored with the graphics state.
gfRealTopDownCoords
This flag is reserved for future extensions. It is not implemented
yet.
gfNativeBlackWhite
If set, RGB black or white is not converted to DeviceGray. This flag
affects text and vector graphics but no images.
gfUseImageColorSpace
If set, the active color space is ignored when inserting an image. The
color space is taken from the image file instead. See also "Color
spaces and Images".
 

Previous topic: Font weights:

Next topic: SetImportFlags