This n8n workflow automates the process of fetching PDF files from URLs, merging them into a single PDF, and saving the result locally. Designed for efficiency, it streamlines handling multiple PDFs for tasks like report generation, document compilation, or content aggregation.
The workflow initiates when the user manually triggers it, starting with the manual trigger node. It then runs a JavaScript code node that outputs an array of two PDF URLs. These URLs are then split into individual items using the Split Out node.
Each URL is processed through an HTTP Request node that downloads the respective PDF file. The downloaded PDFs are subsequently written to disk as ‘test.pdf’ with the Read/Write Files node. Next, the workflow reads and retrieves these saved PDF files, ready for merging.
The actual merging of PDFs is handled by a custom JavaScript PDF toolkit node, which combines the two PDF files into one. Finally, the combined PDF is saved again to disk. This automated process is particularly useful for users who need to compile documents quickly from multiple sources without manual downloading and merging.
Reviews
There are no reviews yet.