Skip to content

Capitalize the named page sizes, as in A4 and Letter - #21

Merged
codesensedev merged 1 commit into
mainfrom
681-capitalized-page-sizes
Nov 24, 2026
Merged

codesensedev merged 1 commit into
mainfrom
681-capitalized-page-sizes

Conversation

@codesensedev

@codesensedev codesensedev commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

The schema now names the page sizes as their papers are named, A4, B5, Letter (lpdfio/lpdf#192), and a name in lowercase is an error. PageSize takes the new values, and this SDK's tests and the example in the javadoc of L use them.

What changes

  • PageSize, regenerated from the schema: each constant keeps its name and takes the new value, A4 for PageSize.A4 and Letter for the letter size.
  • The tests and the example in the javadoc of L write the capitalized names.

How it was checked

  • 245 tests pass against the engine of the core branch (make test-sdk-java).
  • The code lpdf codegen writes for this SDK renders the PDF of its XML for each of 1013 documents (make check-codegen-sdk-java in core).

CI here builds against the last core release, so it fails until a release candidate carries the change.

Work: 681

PageSize holds A4, B5, Letter and the rest, as the schema now names
them, and the tests, examples and README use them.

Work: 681
@codesensedev
codesensedev merged commit c239327 into main Nov 24, 2026
3 of 6 checks passed
@codesensedev
codesensedev deleted the 681-capitalized-page-sizes branch November 24, 2026 22:38
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