Combine itin one pdf
python3 -c " from pypdf import PdfWriter, PdfReader files = [ '/home/daytona/workspace/attachments/d30c54ca-396d-42cb-9025-d31050b57a4d/DOC-20260709-WA0002..pdf', '/home/daytona/workspace/attachments/d30c54ca-396d-42cb-9025-d31050b57a4d/DOC-20260709-WA0003..pdf', '/home/daytona/workspace/attachments/d30c54ca-396d-42cb-9025-d31050b57a4d/DOC-20260709-WA0004..pdf', ] writer = PdfWriter() for f in files: reader = PdfReader(f) print(f'{f}: {len(reader.pages)} pages') for page in reader.pages: writer.add_page(page) output_path = '/home/daytona/workspace/combined.pdf' with open(output_path, 'wb') as out: writer.write(out) print(f'Done! Combined PDF saved to {output_path}') "
combined
PDF Document · PDF