gotenberg/gotenberg-php

Wrong merge order if > 10 files

Closed this issue · 1 comments

Hello @gulien !
I want to merge pdf files like this:
$files = [];
foreach ($this->pdf_pages as $name) {
$files[] = Stream::path(Storage::path($this->dirPath . '/tmp/' . $name));
}

    $request = Gotenberg::pdfEngines('http://gotenberg:3000')
        ->outputFilename($resultFileName)
        ->merge(...$files);

But the order is confused when file count > 10

Originally posted by @AndreyZakhvatoshin in gotenberg/gotenberg#411 (reply in thread)

@AndreyZakhvatoshin Looks like an issue from
my side.