GetTextBlockAsString
טקסט, חילוץ
תיאור
מחזיר את כל רשומות בלוקי הטקסט עבור בלוק טקסט בודד כמחרוזת מפורמטת המופרדת ב-CR/LF
תחביר
Delphi
Function TPDFlib.GetTextBlockAsString(TextBlockListID, Index: Integer): WideString;
ActiveX
Function PDFlib::GetTextBlockAsString(TextBlockListID As Long, Index As Long) As String
DLL
const wchar_t * DLGetTextBlockAsString(int InstanceID, int TextBlockListID, int Index);
פרמטרים
| TextBlockListID | ערך שהוחזר על ידי הפונקציה ExtractPageTextBlocks |
|---|---|
| Index | האינדקס של בלוק הטקסט. לבלוק הטקסט הראשון ברשימה יש אינדקס של 1. |
ערכי החזרה
| TextBlockAsString A formatted string of all available text block fields where each line is separate by a CR/LF. Here is a sample output string 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 where CNT = char count, FNT = fontname, SIZ = Fontsize, CLR = color, TXx = X value for bounds point x, TYy = Y value for bounds y, WID = comma separated character widths, TXT = extracted text. |