Skip to content

Add flextable connector for export_tfl()#18

Merged
billdenney merged 1 commit intomainfrom
feature/flextable-connector
Mar 23, 2026
Merged

Add flextable connector for export_tfl()#18
billdenney merged 1 commit intomainfrom
feature/flextable-connector

Conversation

@billdenney
Copy link
Copy Markdown
Member

Support passing flextable objects (and lists of them) directly to export_tfl(). Captions from set_caption() are extracted into writetfl's caption zone. Footer rows from footnote() and add_footer_lines() are extracted as plain text into writetfl's footnote zone, then removed from the table to avoid duplication. Rendering uses flextable's native gen_grob() which preserves all formatting (borders, merged cells, colours, themes). Non-PDF-safe fonts (e.g. Arial default) are automatically replaced with Helvetica.

Pagination splits body rows across pages when a table is too tall, with a documented limitation that per-cell formatting is not preserved.

Includes S3 method, converter, 11 helpers, 64 tests (100% coverage), vignette, README/main vignette updates, and design doc updates.

Support passing flextable objects (and lists of them) directly to
export_tfl(). Captions from set_caption() are extracted into writetfl's
caption zone. Footer rows from footnote() and add_footer_lines() are
extracted as plain text into writetfl's footnote zone, then removed from
the table to avoid duplication. Rendering uses flextable's native
gen_grob() which preserves all formatting (borders, merged cells,
colours, themes). Non-PDF-safe fonts (e.g. Arial default) are
automatically replaced with Helvetica.

Pagination splits body rows across pages when a table is too tall,
with a documented limitation that per-cell formatting is not preserved.

Includes S3 method, converter, 11 helpers, 64 tests (100% coverage),
vignette, README/main vignette updates, and design doc updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@billdenney billdenney merged commit d910590 into main Mar 23, 2026
9 checks passed
@billdenney billdenney deleted the feature/flextable-connector branch March 23, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant