ComparePageTextsWith

페이지 조작

Small Business 에디션이 필요합니다. Delphi, C++Builder 및 Lazarus 코드에서는 라이브러리를 TPDFlibSmallBusiness(PDFlibSmallBusiness 유닛) 또는 TPDFlibEnterprise로 생성합니다. Small Business 및 Enterprise DLL과 ActiveX 빌드는 이를 그대로 제공합니다. Single 에디션은 메서드를 유지하며, 이 메서드는 0, 빈 문자열 또는 False를 반환하고 LastErrorCode를 901(PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)으로 설정합니다

설명

추출된 텍스트를 기준으로 두 문서를 페이지별로 비교합니다

구문

Delphi

Function ComparePageTextsWith(Other: TPDFlib; Out FirstDifferentPage, ThisPageCount, OtherPageCount: Integer): Integer; Virtual;

ActiveX

Function PDFlib::ComparePageTextsWith(Other As Object, ByRef FirstDifferentPage As Long, ByRef ThisPageCount As Long, ByRef OtherPageCount As Long) As Long

DLL

int DLComparePageTextsWith(int InstanceID, int OtherInstanceID, int* FirstDifferentPage, int* ThisPageCount, int* OtherPageCount);

매개변수

Other자체 라이브러리 인스턴스에 로드된 두 번째 문서입니다. DLL과 Dylib는 이 인스턴스의 DLCreateLibrary가 반환한 핸들을 OtherInstanceID로 넘기고, Automation은 상대 컨트롤 객체를 사용합니다
FirstDifferentPage텍스트가 다른 첫 페이지이며 모든 공통 페이지가 일치하면 0
ThisPageCount, OtherPageCount두 문서의 페이지 수

반환 값

추출 텍스트가 다른 페이지 수이며 페이지 수 차이는 count 매개변수로 나타납니다

비고

비교에는 원시 추출(옵션 8)을 사용하므로 공백 레이아웃이 결과에 영향을 줍니다

참고 항목

GetPageText, ComparePreflightReports