{"product_id":"split-multi-document-pdfs-with-ai-pdfrest-in-n8n","title":"Split Multi-Document PDFs with AI \u0026 pdfRest in n8n","description":"\u003ch3\u003eSplit multi-document PDFs into clean sections with AI—inside n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n automation lets you upload a single PDF that contains multiple documents, uses \u003cstrong\u003epdfRest\u003c\/strong\u003e plus AI to suggest how the pages should be grouped, and then outputs separated PDFs and a downloadable ZIP with a page manifest.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates input:\u003c\/strong\u003e receives a PDF via an n8n upload form and verifies that exactly one valid PDF was provided.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrepares the PDF for analysis:\u003c\/strong\u003e uses \u003cstrong\u003epdfRest\u003c\/strong\u003e to inspect the PDF, run \u003cstrong\u003eOCR\u003c\/strong\u003e to create a searchable master copy, and split it into individual page PDFs.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds a page inventory:\u003c\/strong\u003e converts each page to \u003cstrong\u003eMarkdown\u003c\/strong\u003e, compiles a full-page inventory with \u003cstrong\u003eoriginal page numbers\u003c\/strong\u003e, and flags pages with \u003cstrong\u003elow text\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUses AI to propose boundaries:\u003c\/strong\u003e sends the combined extracted text to OpenAI using the \u003cstrong\u003en8n LangChain Information Extractor\u003c\/strong\u003e to propose \u003cstrong\u003econtiguous document groups\u003c\/strong\u003e with document type, title, counterparty, and evidence-based reasoning.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGuided reviewer approval:\u003c\/strong\u003e presents editable titles, categories, and start\/end page ranges for each suggested document; reviewers can exclude groups or add up to two additional groups, then approve or cancel.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnsures page correctness:\u003c\/strong\u003e checks that every page belongs to \u003cstrong\u003eexactly one\u003c\/strong\u003e included group and returns clear correction messages for invalid ranges (edits are preserved across up to three review submissions).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates outputs:\u003c\/strong\u003e creates descriptive split PDFs, optionally uploads them to \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e, builds a \u003cstrong\u003epage-to-document manifest\u003c\/strong\u003e, compresses everything into a \u003cstrong\u003eZIP\u003c\/strong\u003e, and returns it to the user.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSeparate mixed contract packets (e.g., terms + amendments) submitted as one PDF.\u003c\/li\u003e\n  \u003cli\u003eGroup invoice\/statement documents within scanned multi-page files using OCR + AI page boundaries.\u003c\/li\u003e\n  \u003cli\u003eExtract a structured inventory for compliance workflows by preserving original page numbers.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorkflow category:\u003c\/strong\u003e n8n automation workflow\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes\/logic used:\u003c\/strong\u003e if, set, code, form, sticky note, compression\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eKey services:\u003c\/strong\u003e pdfRest (OCR, Markdown extraction, page splitting), OpenAI via n8n LangChain Information Extractor, optional Google Drive upload\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46172948299955,"sku":"N8N-20573","price":38.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/qHNPObQnicKpHfHgU_73r_Io4B8IGF.png?v=1791364687","url":"https:\/\/buyflowscripts.com\/products\/split-multi-document-pdfs-with-ai-pdfrest-in-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}