{"product_id":"n8n-webhook-split-pdf-with-pdf4me-google-drive","title":"n8n Webhook: Split PDF with PDF4me + Google Drive","description":"\u003ch3\u003eSplit PDFs instantly with an n8n Webhook—PDF4me + Google Drive downloads in one step\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow gives you a simple web upload form that splits an uploaded PDF into smaller PDF files using \u003cstrong\u003ePDF4me\u003c\/strong\u003e, stores the results temporarily in \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e, and returns an HTML results page with direct download\/view links—then automatically cleans up old temporary files.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eServes an upload page via GET\u003c\/strong\u003e: When a user opens the \u003cem\u003e\/pdf-form\u003c\/em\u003e endpoint, the workflow returns a styled HTML page to upload a PDF and specify \u003cstrong\u003epages per file\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDeletes old temporary files\u003c\/strong\u003e: Before processing a new job, it searches your configured Google Drive folder for temp files older than \u003cstrong\u003eone hour\u003c\/strong\u003e and permanently deletes them.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAccepts the PDF via POST\u003c\/strong\u003e: The uploaded PDF is received on the \u003cem\u003e\/pdf-upload\u003c\/em\u003e webhook endpoint, along with the requested split size from the form data.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSplits the PDF with PDF4me\u003c\/strong\u003e: The workflow sends the document to \u003cstrong\u003ePDF4me\u003c\/strong\u003e to create multiple PDF chunks based on the provided page count (or a default).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUploads chunks to Google Drive\u003c\/strong\u003e: Each resulting PDF chunk is uploaded into the same temporary Google Drive folder.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns an HTML results page\u003c\/strong\u003e: The workflow generates an HTML page listing each chunk with Google Drive download\/view links. If PDF4me fails, it returns an HTML error page.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators needing to break large PDFs into smaller documents for easier handling and sharing.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers building a lightweight “upload → split → download” experience without manual file management.\u003c\/li\u003e\n  \u003cli\u003eTeams that want temporary Drive storage with scheduled cleanup to reduce clutter.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook\u003c\/strong\u003e: GET upload form and POST PDF upload endpoints\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePDF4me\u003c\/strong\u003e node: uses n8n-nodes-pdf4mepdf4me to split documents by pages-per-file\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Drive\u003c\/strong\u003e: OAuth2 authentication, folder-based temp upload, and file search\/deletion\u003c\/li\u003e\n  \u003cli\u003eCore n8n nodes\/logic: \u003cem\u003eset\u003c\/em\u003e, \u003cem\u003ecode\u003c\/em\u003e, \u003cem\u003ewebhook\u003c\/em\u003e, plus a sticky note for workflow guidance\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup note:\u003c\/strong\u003e Configure PDF4me API credentials and Google Drive OAuth2, set the temp folder ID in the workflow config, activate it, then open the GET webhook URL to use the upload form.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45895375552691,"sku":"N8N-18645","price":17.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/L35a6okTydoRwfaFewC4a_a1N5SutZ.png?v=1787649288","url":"https:\/\/buyflowscripts.com\/products\/n8n-webhook-split-pdf-with-pdf4me-google-drive","provider":"N8N Commerce","version":"1.0","type":"link"}