SaveTextComparisonPDFA
Small Business, comparison reports
Requires the Small Business edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibSmallBusiness (unit PDFlibSmallBusiness) or TPDFlibEnterprise; the Small Business and Enterprise DLL and ActiveX builds provide it unchanged; the Single edition keeps the method, which returns 0 and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
Requires Small Business or Enterprise
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SaveTextComparisonPDF and string arguments are interpreted using the current SetAnsiMode code page
Syntax
Delphi
Function DLSaveTextComparisonPDFA(InstanceID: Integer; OtherFileName: PAnsiChar; Password: PAnsiChar; Granularity: Integer; OutputFileName: PAnsiChar): Integer;
DLL
int DLSaveTextComparisonPDFA(int InstanceID, const char* OtherFileName, const char* Password, int Granularity, const char* OutputFileName);
For difference rectangles drawn on the source pages, use SaveVisualComparisonPDF
Writes a separate, paginated A4 review PDF containing baseline and current text changes, page references, contrasting text colours and an explicit completeness statement; the selected source document is retained
Granularity is 0 for words or 1 for lines; this is an extracted-text review report, without pixel overlays or source-page difference rectangles
The writer requires embeddable Arial and Arial Bold or DejaVu Sans and DejaVu Sans Bold; automatic fallback handles available supplementary fonts; missing suitable fonts or more than 2048 report pages causes failure
Returns 1 on success or 0 with error 905 on operational failure; Single returns 0 with error 901; a saved report can itself describe incomplete comparison
PDF.SaveTextComparisonPDF('baseline.pdf', '', 1, 'review.pdf');
DLL and Dylib provide DLSaveTextComparisonPDF and its A variant; ActiveX exposes the method through IPDFlibrary8