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);

매개변수

FileHandleDAOpenFile, DAOpenFileReadOnly 또는 DAOpenFromStream 함수가 반환한 핸들
PageRefDAFindPage 또는 DANewPage 함수가 반환한 페이지 참조
ExtractOptions3 = 일반 추출 4 = 단어 분할

반환 값

0페이지에서 텍스트를 추출할 수 없습니다
Non-zeroTextBlockListID 값