Skip to content

Allow custom path for temporary PDF files #56

@davide-acanfora

Description

@davide-acanfora

Hi,
I'm wondering if it would make sense to allow customization of the path used to store temporary PDF files in the addString method.

Currently, the method uses something like: storage_path('tmp/' . Str::random(16) . '.pdf')

This hardcoded path can be limiting in some environments. Rather than adding a parameter directly to addString, it might make sense to allow the temporary path to be set via the constructor or during initialization of the PDFMerger instance — for example, through a setter method or a configuration option.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions