Open iapparatus opened 5 years ago
Yes, just put in the full URL path using the string method
$merger = \PDFMerger::init();
$merger->addPDFString(file_get_contents('https://aws.com/path-to-aws-pdf-1.pdf), 'all', 'P');
$merger->addPDFString(file_get_contents('https://aws.com/path-to-aws-pdf-2.pdf), 'all', 'P');
$merger->merge();
$merger->save(base_path('public/pdf/merged.pdf'));
How do I combine files from a URL, such as AWS s3? Is it possible to override local path?