DAExtractPageTextBlocks
النص، الاستخراج، وظائف الوصول المباشر
الوصف
مشابهة للدالة DAExtractPageText لكن النتائج تُخزن في قائمة كتل نصية بدلًا من إرجاعها كسلسلة CSV
بمجرد إدراج النتائج في قائمة كتل النص، يمكن استخدام دوال مثل DAGetTextBlockCount وDAGetTextBlockText وDAGetTextBlockColor لجلب خصائص كل كتلة نص
الصيغة
Delphi
Function TPDFlib.DAExtractPageTextBlocks(FileHandle, PageRef, ExtractOptions: Integer): Integer;
ActiveX
Function PDFlib::DAExtractPageTextBlocks(FileHandle As Long, PageRef As Long, ExtractOptions As Long) As Long
DLL
int DLDAExtractPageTextBlocks(int InstanceID, int FileHandle, int PageRef, int ExtractOptions);
المعاملات
| FileHandle | مقبض تُرجعه الدالات DAOpenFile أو DAOpenFileReadOnly أو DAOpenFromStream |
|---|---|
| PageRef | مرجع صفحة تُرجعه الدالتان DAFindPage أو DANewPage |
| ExtractOptions | 3 = الاستخراج العادي، 4 = تقسيم الكلمات |
قيم الإرجاع
| 0 | تعذّر استخراج النص من الصفحة |
|---|---|
| Non-zero | A TextBlockListID value |