Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Resetting options #241

Closed
cdarken opened this issue May 16, 2017 · 3 comments
Closed

Resetting options #241

cdarken opened this issue May 16, 2017 · 3 comments
Labels

Comments

@cdarken
Copy link

cdarken commented May 16, 2017

Is there any way to reset all or some options to defaults? For instance if you generate more than one PDF in one call.

@akerouanton
Copy link
Contributor

akerouanton commented Jun 14, 2017

Nope, not currently. You need to rely on something like that:

$options = $generator->getOptions();
$generator->setOptions(
    array_combine(array_keys($options), array_fill(0, count($options), null)
);

@stale
Copy link

stale bot commented Jan 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 7, 2020
@alexpozzi alexpozzi removed the stale label Jan 8, 2020
@alexpozzi
Copy link
Member

Closing as this PR has been merged.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants