ComparePageTextsWith

Manipulación de páginas

Requiere la edición Small Business. En código Delphi, C++Builder y Lazarus, la biblioteca se crea como TPDFlibSmallBusiness (unidad PDFlibSmallBusiness) o TPDFlibEnterprise; la DLL y las compilaciones ActiveX de Small Business y Enterprise la proporcionan sin cambios. La edición Single conserva el método, que devuelve 0, una cadena vacía o False y establece LastErrorCode en 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)

Descripción

Compara dos documentos página por página mediante el texto extraído

Sintaxis

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

Parámetros

OtherEl segundo documento, cargado en su propia instancia de la biblioteca. La DLL y la Dylib toman como OtherInstanceID el handle DLCreateLibrary devuelto para él; Automation toma el objeto de control del otro
FirstDifferentPagePrimera página cuyo texto difiere, o 0 cuando coinciden todas las páginas compartidas
ThisPageCount, OtherPageCountEl número de páginas de ambos documentos

Valores devueltos

Número de páginas cuyo texto extraído difiere; las diferencias en el número de páginas se muestran mediante los parámetros de recuento

Observaciones

La comparación utiliza extracción sin procesar (opción 8), por lo que la disposición de los espacios en blanco influye en el resultado

Véase también

GetPageText, ComparePreflightReports