Allow dompdf generation to work when HTTP authentication is enabled for a domain/server

Created on 10 February 2023, almost 2 years ago

Problem/Motivation

While trying to generate a pdf containing images, fonts behind a htaccess auth, the assets cannot be fetched by dompdf.
This issue happens, because we do not pass the auth data in print_pdf_dompdf_print_pdf_generate.

Proposed resolution

We should pass the authentification data by using the http_context option, which is provided by dompdf since version 1.2.1.

📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

🇩🇪Germany SteffenR Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024