22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DLI</strong> <strong>Reference</strong> <strong>Guide</strong> A.21<br />

dlpdfcontentrect (DLPDFCONTENT *Content,<br />

PDEGraphicState *gState, int PaintOp, ASFixed X, ASFixed<br />

Y, ASFixed Width, ASFixed Height)<br />

Return Value: void<br />

Description<br />

Parameters<br />

Return Value<br />

This procedure marks a rectangle in the content.<br />

It will be located such that its lower left h<strong>and</strong><br />

corner is at (X,Y).<br />

• DLPDFCONTENT *Content: Represents the<br />

content element. These structures are<br />

destroyed when associated with a page or<br />

form, <strong>and</strong> pointers to them should not be<br />

used after that time.<br />

• PDEGraphicState *gState: Contains<br />

definitions of colors to be applied, <strong>and</strong> line<br />

sizes <strong>and</strong> parameters to be used when<br />

drawing a path.<br />

• int PaintOp: A composite of flags which<br />

define how the text will be displayed. It is set<br />

by performing a bitwise OR with the desired<br />

combination of the Adobe PDF Library flag<br />

values kPDEFill, kPDEStroke,<br />

kPDEEoFill <strong>and</strong> kPDEInvisible.<br />

• ASFixed X: The X location of the rectangle.<br />

• ASFixed Y: The Y location of the rectangle.<br />

• ASFixed Width: The width of the<br />

rectangle. This may not be specified as zero,<br />

but may be specified as a negative value,<br />

which results in flopping the rectangle (i.e.<br />

right instead of left).<br />

• ASFixed Height: The height of the<br />

rectangle. This may not be specified as zero,<br />

but may be specified as a negative value,<br />

which results in flopping the rectangle (i.e.<br />

down instead of up).<br />

void<br />

Exceptions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!