Skip to content

Conversation

rasamassen
Copy link

@rasamassen rasamassen commented Oct 6, 2025

Description

RTF BorderWriter now detects the border type with the $type variable (each type of border has a different initial tag that must be set), implements setStyle and, for sections and paragraphs, setSpace.

RTF BorderWriter is prepared for future improvements to the RTF TableWriter, which currently doesn't use BorderWriter to write its borders.

RTF BorderWriter is prepared for future improvements to the elements FontStyle and RowStyle to allow borders there as well.

Documentation will be updated after this pull and pull #2831 are approved (as that pull created numerous documentation files, including borders.md).

Checklist:

  • My CI is 🟢
  • I have covered by unit tests my new code (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes
  • I have updated the changelog

Works with all border types now through setting the $type variable - section (page), paragraph, table, and cell. Prepared for future usage with header, footer, character, and row.

Implements border style.
Implements border space (for sections and paragraphs).
@coveralls
Copy link

coveralls commented Oct 6, 2025

Coverage Status

coverage: 96.763% (+0.006%) from 96.757%
when pulling ac5c422 on rasamassen:border
into 0ab0b49 on PHPOffice:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants