Skip to content

PHP 8.3.7 -- impossible to set CLI flag via AbstractGenerator::setOption (function requires name/value pair) #12

@Kadigan

Description

@Kadigan

What I tried:

$pdf->setOption('presentational-hints');

What I expected: for this to be accepted.
What actually happened:

Too few arguments to function Pontedilana\PhpWeasyPrint\AbstractGenerator::setOption()

What I tried:

$pdf->setOption('presentational-hints', '');

What I expected: for this to be accepted.
What actually happened:

weasyprint: error: unrecognized arguments: /tmp/php_weasyprint664ca461dfe6e2.63654685.pdf

(likely due to the cmdline being --presentational-hints '' instead of --presentational-hints.

Fun fact: you list $pdf->setOption('presentational-hints'); in the Readme, when it doesn't actually seem to work.

What do?

Metadata

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