Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Using merger twice #31

Open
irzafaikar opened this issue May 3, 2021 · 0 comments
Open

Using merger twice #31

irzafaikar opened this issue May 3, 2021 · 0 comments

Comments

@irzafaikar
Copy link

I want to use the merger twice in my controller.
Because i have to merge different document in same time.

I initiate the package in different variabel.
But i think that variable use same reference.

This is my code.
$pdf = PdfMerger::init(); $pdf->addPDF(Storage::disk('template')->path('1') . "/prev_tmp.pdf"); $pdf->merge(); $pdf2 = PdfMerger::init(); $pdf2->addPDF(Storage::disk('template')->path('2') . "/prev_tmp.pdf"); $pdf2->merge(); dd($pdf, $pdf2);
Screenshot from 2021-05-03 16-53-46

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant