A PDText is a graphic object (a subclass of PDGraphic) representing one or more character strings on a page.
For details, see the following sections in the PDF Reference:
- Section 4.1, Graphic Objects.
- Section 5.3, Text Objects.
Like paths, text can be stroked or filled, and can serve as a clipping path.
There are PDText methods to access the text-specific parameters in the graphics state. See Section 4.3,
Graphics State, in the PDF Reference, for a discussion of graphics state.
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
typedef struct _t_PDGraphic* PDText;
File: PDExpT.h |
Line: 2412 |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
File: PDExpT.h |
Line: 2551 |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
File: PDExpT.h |
Line: 2551 |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
A data structure containing information about the current text state.
See Also
File: PDExpT.h |
Line: 2524 |
Elements
| font | Text font. |
|
| charSpacing | Character spacing. |
|
| wordSpacing | Word spacing. |
|
| horizontalScale | Horizontal scaling. |
|
| leading | Leading. |
|
| textRise | Text rise. |
|
| textSize | Text font size. |
|
| renderMode | Text rendering mode. |
|
| textMatrix | Text matrix. |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Enumerates the strings of a text object, calling a procedure for each string. The PDText object may be obtained from the PDGraphicEnumTextProc() callback of PDGraphicEnumMonitor.
Parameters
| text — | IN/OUT The text object whose strings are enumerated. |
|
| enumProc — | IN/OUT A user-supplied callback to call for each text string in the text object. Enumeration ends if enumProc returns false . |
|
| clientData — | IN/OUT A pointer to user-supplied data to pass to enumProc each time it is called. |
Since
File: PDProcs.h |
Line: 3605 |
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Gets the text state for a text object. See Section 5.2 in the PDF Reference for a discussion of the text state parameters.
Parameters
| obj — | IN/OUT The text object whose text state is obtained. |
|
| stateP — | IN/OUT (Filled by the method) A pointer to a PDTextState structure containing the text state information. |
|
| stateLen — | IN/OUT It must be sizeof(PDTextState) . |
Since
File: PDProcs.h |
Line: 3619 |
Copyright 2020 Adobe Systems Incorporated and its licensors. All rights reserved. Adobe and the Adobe logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. This product contains either BSAFE and/or TIPEM software by RSA Security, Inc. Portions utilize Microsoft Windows Media Technologies. Copyright © 2006 Microsoft Corporation. All Rights Reserved. Notices, terms and conditions pertaining to other third party software are located at http://www.adobe.com/go/thirdparty/ and incorporated herein by reference.
Wed Feb 7 2024, 2:16 pm IST