Skip to content

Preserve PDF pages when setting width and height#2553

Open
chearon wants to merge 2 commits intomasterfrom
ch/2538
Open

Preserve PDF pages when setting width and height#2553
chearon wants to merge 2 commits intomasterfrom
ch/2538

Conversation

@chearon
Copy link
Collaborator

@chearon chearon commented Feb 14, 2026

Includes a refactor to greatly simplify code: remove backends. I pulled this from the next branch where v4 is being developed and cleaned it up a bit. For that reason I'm going to let this sit a bit and hope I get some review or have time to review myself, then I'll merge it.

Fixes #2538
Closes #2552

This is too much indirection. Backends have led to a few bugs by
being confusing, and there is zero benefit to such an abstraction.
It's only added LOC and more jumping around files to figure out
what's happening.

IIRC backends were added with the intent to have framebuffer
backends but that never got merged because it's way out of scope.

I broke the JS ctors in ce29f69
so we got lucky and don't have to call this a breaking change.
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.

Canvas size is not updated when adding PDF page with different size than initial canvas size

1 participant