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
ExtractOptions3 = الاستخراج العادي، 4 = تقسيم الكلمات

قيم الإرجاع

0تعذّر استخراج النص من الصفحة
Non-zeroA TextBlockListID value