{"product_id":"n8n-workflow-split-large-pdfs-into-20-page-chunks","title":"n8n Workflow: Split Large PDFs into 20-Page Chunks","description":"\u003ch3\u003eSplit Large PDFs into 20-Page Chunks—Automatically with n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow manually pulls PDF files from a specified \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e folder, detects each document’s page count using \u003cstrong\u003ePDF.co\u003c\/strong\u003e, splits every PDF into \u003cstrong\u003e20-page chunks\u003c\/strong\u003e, and uploads the resulting chunk PDFs back to a target Google Drive folder—ready for downstream processing or storage.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eManual start:\u003c\/strong\u003e You execute the workflow in n8n on demand.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLocate source PDFs:\u003c\/strong\u003e It searches a specific Google Drive source folder and lists the files inside.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrepare files for PDF.co:\u003c\/strong\u003e For each file, the workflow downloads it from Google Drive and uploads it to \u003cstrong\u003ePDF.co\u003c\/strong\u003e to obtain a hosted file URL.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDetect page counts:\u003c\/strong\u003e It calls PDF.co metadata endpoints to determine the total page count.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuild 20-page ranges:\u003c\/strong\u003e Using that page count, it constructs page ranges to split the document into \u003cstrong\u003e20-page chunks\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerate split outputs:\u003c\/strong\u003e It calls PDF.co’s split endpoint to produce chunk PDF URLs for the specified ranges.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpload numbered chunks:\u003c\/strong\u003e The workflow downloads each chunk, assigns a numbered filename based on the original document name, and uploads the chunk PDFs to the destination Google Drive folder.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eChunking long PDFs (reports, manuals, scan bundles) to reduce handling time for review or indexing.\u003c\/li\u003e\n  \u003cli\u003ePreparing documents for OCR, search, or document processing pipelines that work best at a fixed page size.\u003c\/li\u003e\n  \u003cli\u003eOrganizing large PDF libraries by splitting them into consistent sections for easier sharing and archiving.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e Google Drive (OAuth2), PDF.co (API credentials)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/tools:\u003c\/strong\u003e \u003cem\u003egoogle drive\u003c\/em\u003e, \u003cem\u003ehttp request\u003c\/em\u003e, \u003cem\u003en8n-nodes-pdfco (PDF.co API)\u003c\/em\u003e, plus \u003cem\u003ecode\u003c\/em\u003e, \u003cem\u003emerge\u003c\/em\u003e, and \u003cem\u003esticky note\u003c\/em\u003e nodes to coordinate logic\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup notes:\u003c\/strong\u003e Configure Google Drive source\/destination folder IDs and PDF.co permissions for file upload, info, and split operations. You can also adjust the chunk size logic (default: 20 pages) to change page ranges per output file.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45748942012595,"sku":"N8N-17711","price":45.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/aN2TxX0jIwkev3iD-vmUY_LyFqVdrC.png?v=1785574900","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-split-large-pdfs-into-20-page-chunks","provider":"N8N Commerce","version":"1.0","type":"link"}