Skip to content

openpdf-html: Improve support for CSS @font-face #1426#1470

Merged
andreasrosdal merged 2 commits into
masterfrom
copilot/fix-unsupported-encryption
Feb 16, 2026
Merged

openpdf-html: Improve support for CSS @font-face #1426#1470
andreasrosdal merged 2 commits into
masterfrom
copilot/fix-unsupported-encryption

Conversation

Copilot AI commented Feb 16, 2026

Copy link
Copy Markdown
Contributor
  • Understand the current implementation and limitations
  • Modify Src class in PrimitivePropertyBuilders.java to support multiple values (url + format functions)
  • Update ITextFontResolver.java to parse multiple src values and extract format information
  • Add logic to select the first supported font format from multiple options
  • Improve font type detection to use format() function first, with fallback to file extension
  • Compile and verify the changes work
  • Add tests for the new functionality
  • Run tests to ensure changes don't break existing functionality

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Modified Src property builder to support comma-separated url/format pairs
- Updated ITextFontResolver to parse multiple font sources and try each in order
- Added support for format() function to determine font type
- Improved font format detection using format hints with fallback to file extension

Co-authored-by: andreasrosdal <259156774+andreasrosdal@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@andreasrosdal
andreasrosdal marked this pull request as ready for review February 16, 2026 09:10
@andreasrosdal
andreasrosdal merged commit 6f48ab4 into master Feb 16, 2026
7 of 8 checks passed
@andreasrosdal
andreasrosdal deleted the copilot/fix-unsupported-encryption branch February 16, 2026 09:10
Copilot AI restored the copilot/fix-unsupported-encryption branch February 16, 2026 09:10
Copilot AI requested a review from andreasrosdal February 16, 2026 09:10
Copilot stopped work on behalf of andreasrosdal due to an error February 16, 2026 09:10
@andreasrosdal andreasrosdal changed the title [WIP] Fix unsupported encryption for specific PDF files openpdf-html: Improve support for CSS @font-face #1426 Feb 16, 2026
@andreasrosdal
andreasrosdal deleted the copilot/fix-unsupported-encryption branch February 17, 2026 07:54
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