Skip to content

Updates to canvas adapter usage and Cpdf implementation#3651

Merged
bsweeney merged 4 commits intomasterfrom
canvas-improvements
Sep 20, 2025
Merged

Updates to canvas adapter usage and Cpdf implementation#3651
bsweeney merged 4 commits intomasterfrom
canvas-improvements

Conversation

@bsweeney
Copy link
Copy Markdown
Member

@bsweeney bsweeney commented Sep 1, 2025

  • Address loss of options due to canvas adapter re-initialization. Due to a lack of functionality in the Cpdf class, a change to the page size after instantiation requires re-instantiation. Depending on when options were set, they may not be used during rendering. This change modifies options handling so that the adapter is re-initialized when the options are changed.
  • Remove cache-control headers
  • Allows custom document information when using the Cpdf adapter

When some options change (e.g., paper size, cache directories) the current implementation requires a reset of the Canvas adapater to apply the settings. This change resets the adapter early in order to minimize potential impact due to replacement of the Canvas.

fixes #2990
fixes #3642
While the primary use of Dompdf is for personalized PDF generation, implementions should control the caching level.

fixes #3098
@bsweeney bsweeney merged commit d38589a into master Sep 20, 2025
35 checks passed
@bsweeney bsweeney deleted the canvas-improvements branch September 20, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant