Skip to content

Support Poppler 26.4+ API change#1490

Open
Luigi-Arone wants to merge 1 commit into
OpenBoard-org:masterfrom
Luigi-Arone:poppler-26-compat
Open

Support Poppler 26.4+ API change#1490
Luigi-Arone wants to merge 1 commit into
OpenBoard-org:masterfrom
Luigi-Arone:poppler-26-compat

Conversation

@Luigi-Arone
Copy link
Copy Markdown

@Luigi-Arone Luigi-Arone commented May 12, 2026

In Poppler 26.4, getString() was changed to return a reference to
GooString instead of a pointer, which breaks compilation against
recent Poppler versions.

This PR adds a new branch to the version check in
src/pdf/XPDFRenderer.cpp to handle the new API while keeping
compatibility with older versions.

Testing

Tested on FreeBSD 15.0-CURRENT amd64.

Context

Discovered while packaging OpenBoard for the FreeBSD ports tree
(Bug 295104).

In Poppler 26.4, getString() was changed to return a reference
to GooString instead of a pointer. This break compilation against
recent Poppler versions. Add a new branch to the version check to
handle the new API while keeping compatibility with older versions.
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this pull request May 13, 2026
OpenBoard is an open source cross-platform interactive whiteboard
application designed primarily for use in schools. It was originally
forked from Open-Sankore, which was itself based on Uniboard. It
supports digital pens, virtual keyboards, PDF import, web browsing,
video playback, and screen annotations.

WWW: https://www.openboard.org/
https://github.com/OpenBoard-org/OpenBoard/

Patches reported to upstream:
OpenBoard-org/OpenBoard#1489
OpenBoard-org/OpenBoard#1490

PR:		295104
Sponsored by:	UNIS Labs
@Vekhir
Copy link
Copy Markdown
Contributor

Vekhir commented May 13, 2026

This code is unused, so the PR #1474 removes it and also solves the issue.

Nice work on the FreeBSD port

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