Skip to content

Pdf::paperSizes array entries and Dompdf #1713

Closed
@bradbulger

Description

The Dompdf::save() function resets paperSize to use the entries from Pdf::$paperSizes. But many of those are arrays, not strings, which conflicts with the use of strtolower() in the call to $pdf->setPaper(). Looking at the dompdf code, that function does accept arrays, but there are other errors further on when passing one of the entries from $paperSizes (PAPERSIZE_E).

Should Dompdf have a restricted set of sizes that only include entries with string values?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions