You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if call setPaper() then generated PDF is not password protected, if setPaper() is commented out then generated PDF is password protected. Here is my code:
Due to a quirk in the way Dompdf manages the Cpdf canvas adapter if the page size differs from the page size specified in the Options when Dompdf is initialized, then Cpdf is re-initialized on render. You can work around the issue by either:
set the password after the document is rendered
initialize Dompdf with the desired page size (e.g., $dompdf = new Dompdf(["defaultPaperSize" => "A4"]))
if call setPaper() then generated PDF is not password protected, if setPaper() is commented out then generated PDF is password protected. Here is my code:
The text was updated successfully, but these errors were encountered: