Skip to content

Document Dompdf PDFLib backend usage for performance-sensitive rendering#7

Draft
endroid with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-dompdf-performance-issue
Draft

Document Dompdf PDFLib backend usage for performance-sensitive rendering#7
endroid with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-dompdf-performance-issue

Conversation

Copilot AI commented Apr 15, 2026

Copy link
Copy Markdown

The issue raised uncertainty about Dompdf performance after the 2.x switch and how to apply the upstream PDFLib recommendation. This PR clarifies the supported configuration path in this library and points users to the current extension distribution channel.

  • Performance guidance for Dompdf backend selection

    • Added a focused “Dompdf performance” section to the README.
    • Documents that endroid/pdf forwards Dompdf options via setOptions(), including backend selection.
    • Explains that pdfBackend=PDFLib can improve performance for large/complex documents.
  • Concrete configuration example

    • Added an example showing how to enable PDFLib (and optional license key) through the existing builder API:
$pdfBuilder->setOptions([
    'pdfBackend' => 'PDFLib',
    // Optional: set when your PDFLib installation requires it
    // 'pdflibLicense' => 'your-license-key',
]);
  • Documentation accuracy updates

    • Updated outdated README wording that still referenced wkhtmltopdf/Snappy to reflect the current Dompdf-based implementation.
    • Added explicit reference to the pdflib extension source on PECL.

Copilot AI linked an issue Apr 15, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix performance problem with dompdf Document Dompdf PDFLib backend usage for performance-sensitive rendering Apr 15, 2026
Copilot AI requested a review from endroid April 15, 2026 13:55
@endroid

endroid commented Apr 17, 2026

Copy link
Copy Markdown
Owner

@copilot Check the original issue for new input

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.

Dompdf Performance Problem.

2 participants