DTWAIN PDF Text Matrix Constants

Top  Previous  Next

The following constants are used for the DTWAIN_SetPDFTextElementLong for an item type of type DTWAIN_PDFTEXTELEMENT_TRANSFORMORDER.

 

These constants describe the order of rotation, skewing, and x/y scaling when text is written to a PDF file during image acquisition.  For example, text can be rotated before skewing, or rotated after skewing and before scaling, or scaling can occur before rotation, etc.


Since there are 6 possible combinations of which of these operations are done, here are the constants defining each of the orderings

 

Constant

Value

Transformation order




DTWAIN_PDFTEXTTRANSFORM_SRK             

0        

Scale, Rotate, Skew

DTWAIN_PDFTEXTTRANSFORM_SKR

1

Scale, Skew, Rotate

DTWAIN_PDFTEXTTRANSFORM_KSR

2

Skew, Scale, Rotate

DTWAIN_PDFTEXTTRANSFORM_KRS        

3        

Skew, Rotate, Scale

DTWAIN_PDFTEXTTRANSFORM_RSK

4        

Rotate, Scale, Skew

DTWAIN_PDFTEXTTRANSFORM_RKS

5

Rotate, Skew, Scale