SetStructuredTableJoinOptions
Structured text and tables
Description
Controls whether geometrically inferred tables may continue across adjacent pages
Syntax
function TPDFlib.SetStructuredTableJoinOptions(
const Options: TPDFlibTableJoinOptions): Integer;
Parameters
Options supplies the cross-page table-joining policy. The library applies it to subsequent document-level extraction and exports that use cross-page analysis
| GeometryEnabled | Defaults to true. Set false to keep geometric fragments separate while allowing eligible tagged continuations |
|---|---|
| PreviousBottomFraction | Defaults to 0.65. The prior table's bottom must reach at least this fraction of the page height measured from the top |
| NextTopFraction | Defaults to 0.35. The next table's top must be within this fraction of the next page measured from the top |
| ColumnTolerancePoints, ColumnToleranceFraction | Default to 4 points and 0.015. Allowed drift is the larger of the absolute tolerance and the specified fraction of the preceding page width |
| RequireMatchingHeader | Defaults to false. Set true to require matching text and header status in the two fragments' first rows |
Use PDF_STRUCTURED_JOIN_TABLES in SetStructuredTextOptions to enable document-wide joining. Candidates must occur at the facing visible block boundaries of consecutive source pages. Tagged tables use their structure identity and remain independent of the geometric settings
The policy applies to subsequent document-level extraction and exports that use cross-page analysis. Read GetLastStructuredTextDiagnostics for the active thresholds, measured alignment and the decision for each considered page boundary
Return values
Returns 1 when the setting is accepted. Nonfinite or negative tolerances and fractions outside 0 through 1 return 0 with error 111 and retain the previous policy
JoinOptions := Lib.GetStructuredTableJoinOptions;
JoinOptions.RequireMatchingHeader := True;
Lib.SetStructuredTableJoinOptions(JoinOptions);