merge static method
Implementation
static Future<Uint8List?> merge(List<UPdfDocument> documents, {UDocMetadata? metadata}) async {
final UPdfComposer composer = UPdfComposer();
for (final UPdfDocument document in documents) {
for (int index = 0; index < document.pageCount; index++) {
await composer.addPage(document, index);
}
}
if (composer.pageCount == 0) return null;
return composer.build(metadata: metadata);
}