PDFium Delphi Component Docs

TPdfReadableContentOptions.ColumnGap

Unit: PDFium
Options := TPdfReadableContentOptions.Default;
Options.HeuristicOrder := rhoColumns;
Options.ColumnGap := 12;
Pdf.ReadableContentOptions := Options;

Minimum gutter width in PDF points that separates two columns when HeuristicOrder is rhoColumns; ignored by the default rhoNative order and by tagged logical reading

A candidate vertical cut is placed midway between the displayed centers of horizontally adjacent objects; an object joins the left side only when its right edge ends at least ColumnGap/2 before the cut, and the right side only when its left edge starts at least ColumnGap/2 after it

Objects that straddle the cut within that half-gap band are not forced into either column; they become spanning flow bands read before the columns below them, which handles full-width headings, footers and captions

The default is 18 points; assignment accepts finite values from 1 through 1000000, and an invalid value raises the readable-options validation error while the previous policy and cached content stay unchanged

Column detection still requires at least two objects on each side of the cut with overlapping vertical extents; a narrower gap accepts closer columns but also promotes ordinary horizontal spacing into columns, so tune it against the document's actual column spacing

Ordering works on displayed bounding boxes at 1/64 point resolution including the page's intrinsic Rotate; ordering never rewrites text direction, font orientation or source rectangles, and native save/reopen preserves the original PDF content