DAGetTextBlockAsString

Texte, extraction, fonctionnalité Direct Access

Description

Renvoie toutes les entrées d'un bloc de texte sous forme de chaîne formatée délimitée par CR/LF

Syntaxe

Delphi

Function TPDFlib.DAGetTextBlockAsString(TextBlockListID, Index: Integer): WideString;

ActiveX

Function PDFlib::DAGetTextBlockAsString(TextBlockListID As Long, Index As Long) As String

DLL

const wchar_t * DLDAGetTextBlockAsString(int InstanceID, int TextBlockListID, int Index);

Paramètres

TextBlockListIDValeur renvoyée par la fonction ExtractPageTextBlocks
IndexL'index du bloc de texte Le premier bloc de texte de la liste porte l'index 1

Valeurs de retour

TextBlockAsString Chaîne formatée de tous les champs de bloc, une ligne par CR/LF. Exemple : CNT:4 FNT:Arial SIZ:12 CLR:#000000 TX1:20 TY1:769.516 TX2:48.02 TY2:769.516 TX3:48.02 TY3:780.616 TX4:20 TY4:780.616 WID:8.004,6.672,6.672,6.672 TXT:Page, où CNT = nombre de caractères, FNT = police, SIZ = taille, CLR = couleur, TXx/TYy = coordonnées, WID = largeurs, TXT = texte extrait