ComparePageTextsWith
Manipulación de páginas
Requiere la edición Small Business. En código Delphi, C++Builder y Lazarus, cree la biblioteca como TPDFlibSmallBusiness (unidad PDFlibSmallBusiness) o TPDFlibEnterprise; las compilaciones DLL y 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 usando 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 LongDLL
int DLComparePageTextsWith(int InstanceID, int OtherInstanceID, int* FirstDifferentPage, int* ThisPageCount, int* OtherPageCount);Parámetros
| Other | El segundo documento, cargado en su propia instancia de TPDFlib. La DLL y la Dylib toman el handle de instancia DLCreateLibrary devuelto para él como OtherInstanceID; Automation toma el objeto de control del otro |
|---|---|
| FirstDifferentPage | Primera página cuyo texto difiere, o 0 cuando coinciden todas las páginas compartidas |
| ThisPageCount, OtherPageCount | Los recuentos de páginas de ambos documentos |
Valores devueltos
El número de páginas cuyo texto extraído difiere; los conteos de páginas distintos aparecen mediante los parámetros de conteo
Observaciones
La comparación usa extracción sin procesar (opción 8), por lo que el diseño de los espacios en blanco influye en el resultado