Skip to content

Conversation

@laeubi
Copy link
Contributor

@laeubi laeubi commented Feb 5, 2026

Change PDFDocument to subclass Device rather than implement Drawable to centralize resource management, align with Device lifecycle, and simplify drawing logic.

This also fixes some complication with the windows implementation that possibly chooses bad defaults and confuses screen DPI with PDF defaults (72 DPI).

Further the classes are now made final to prevent complications in future enhancements as sub-classes are not useful here.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Test Results

  176 files  +29    176 suites  +29   27m 10s ⏱️ + 5m 17s
4 684 tests ± 0  4 662 ✅ ± 0  22 💤 ±0  0 ❌ ±0 
  485 runs  +70    479 ✅ +69   6 💤 +1  0 ❌ ±0 

Results for commit b85d25e. ± Comparison against base commit 1a6e82c.

♻️ This comment has been updated with latest results.

Change PDFDocument to subclass Device rather than implement Drawable to
centralize resource management, align with Device lifecycle, and
simplify drawing logic.

This also fixes some complication with the windows implementation that
possibly chooses bad defaults and confuses screen DPI with PDF defaults
(72 DPI). Further the classes are made final and marked as experimental.
@laeubi laeubi merged commit 9112e41 into eclipse-platform:master Feb 6, 2026
23 checks passed
@akurtakov akurtakov deleted the pdf_is_a_device branch February 6, 2026 07:47
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.

2 participants