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.

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

dlpdfcontenttext (DLPDFCONTENT *Content,<br />

DLPDFFONT *Font, char *str, PDEGraphicState *gState,<br />

PDETextState *tState, ASFixed pointSize, ASFixed setWidth,<br />

ASFixed XPos, ASFixed YPos, ASFixed Rotate)<br />

Return Value: void<br />

Concepts <strong>and</strong> Facilities: <strong>Guide</strong> to the DL Pager Composition System<br />

Description<br />

Parameters<br />

Adds a NULL-terminated string of text to the<br />

content. It will be placed such that the baseline<br />

of the left edge of the first character aligns to<br />

the position (XPos,YPos) in points.<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 />

• DLPDFFON *Font: Reflects the font. It is<br />

created by dlpdffontcreate on a perdocument<br />

basis, <strong>and</strong> may only be used within<br />

the document it was created in. Fonts are<br />

tracked within the document <strong>and</strong> destroyed<br />

when the document is destroyed. Pointers to<br />

fonts are invalid after the destruction of their<br />

document.<br />

• char *str: Text string<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 />

• PDETextState *tState: The current text<br />

state. This should not be NULL. A zero-filled<br />

PDETextState parameter is permitted.

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

Saved successfully!

Ooh no, something went wrong!