BULDRR AI Vikash KumarSchedule a Call
Updated Workflow #1588

Automate PDF to HTML Conversion with n8n and Google Drive (Free Workflow)

This n8n workflow automatically converts PDFs to HTML — extracting text, tables, and document structure for web publishing or downstream data processing. Free template included.

Automate PDF to HTML Conversion with n8n and Google Drive (Free Workflow)
CONNECTS
Google Drive Trigger, If, HTTP Request, Code, Google Drive, Sticky Note
Learn it with AI
✦ SEE IT BEFORE YOU DOWNLOAD

The canvas, and the 6 nodes behind it.

Preview of the Automate PDF to HTML Conversion with n8n and Google Drive (Free Workflow) workflow canvas in n8n
✦ NODE BY NODE

What runs inside this workflow

Automate PDF to HTML Conversion with n8n and Google Drive (Free Workflow) is built from these n8n nodes: Google Drive Trigger, If, HTTP Request, Code, Google Drive, Sticky Note.

    ✦ LEARN HOW TO BUILD THIS WORKFLOW WITH AI
    Send this workflow to your assistant and have it taught to you.

    Each button opens the assistant with the prompt already written — asking it to explain this exact workflow step by step, as if teaching a complete beginner.

    Using our workflows often?
    Mark BULDRR AI as a preferred source and our templates surface higher in your own Google results.
    Add as a preferred source
    Every time a new PDF lands in your Google Drive folder, this workflow converts it to HTML automatically — no manual steps, no copy-pasting, no waiting. It works like this: you (or a team member, or a client) uploads a PDF to a designated Google Drive folder. The workflow detects it within seconds, sends the file to the PDF.co conversion API, receives the HTML output, and uploads the converted file back to Google Drive — all without you touching anything. The result is a clean HTML file sitting in your Drive folder, ready to publish on a website, paste into a CMS, or send to a developer. This is especially useful for content teams, legal teams, and publishers who deal with high volumes of PDFs that need to go live as web content — fast. The most common business uses: → Extract and publish PDF reports as web pages → Pull table data from PDFs into structured HTML tables → Convert product catalogs, whitepapers, or documentation into web-ready format → Batch-process incoming PDFs from clients or partners into HTML automatically Download the free workflow template below and have it running in under 15 minutes.

    What This Workflow Does

    This n8n workflow monitors a Google Drive folder and converts every new PDF file to HTML automatically using the PDF.co API. Here is the exact sequence of events when a new PDF is uploaded: 1. The Google Drive Trigger node detects the new file within 1 minute of upload (polling interval is configurable). 2. An IF node checks the file's MIME type to confirm it is a PDF (application/pdf). Non-PDF files are ignored and the workflow stops — preventing failed API calls on wrong file types. 3. The HTTP Request node calls the PDF.co API endpoint: POST https://api.pdf.co/v1/pdf/convert/to/html It passes the Google Drive file URL and your API key. PDF.co processes the file and returns a URL pointing to the converted HTML content. 4. A second HTTP Request node (or Code node) fetches the HTML content from the returned URL and converts it to binary data — the format Google Drive needs to save a file. 5. The Google Drive node uploads the binary HTML file to your specified output folder, naming it after the original PDF (e.g., report.pdf becomes report.html). Total time from PDF upload to HTML file appearing in Drive: 15–45 seconds depending on PDF size and API response time. Here is what happens step by step: 1. A new PDF lands in your watched Google Drive folder 2. The workflow detects it and sends it to the PDF.co conversion API 3. PDF.co extracts all content — including tables, paragraphs, and headings — and returns clean HTML 4. The HTML is packaged into a file and uploaded to a separate Google Drive folder 5. The HTML file is ready to publish, embed, or edit immediately No copy-pasting from PDFs. No manual reformatting. No lost table data. The extracted content comes out structured and web-ready every time.

    Who Should Use This Workflow

    Who Should Use This Workflow Content managers and web editors: You receive PDFs from clients, partners, or internal teams and need to publish them as web pages. Manual conversion is slow and inconsistent. This workflow handles every new PDF the moment it lands in Drive. Legal and compliance teams: You process contracts, policy documents, and regulatory filings in PDF format. Converting them to HTML makes them searchable, linkable, and easier to embed in internal portals. Publishers and media companies: You receive press releases, reports, and white papers as PDFs. This workflow converts them to HTML automatically so your editorial team can paste directly into WordPress, Webflow, or any CMS without reformatting. Developers and agencies: You build document management systems for clients. This workflow drops directly into any pipeline where PDFs need to become HTML — no custom code required. If you or your team converts more than 5 PDFs per week manually, this workflow pays back its setup time in the first day.

    Tools and Services Used


    Inputs, Processing Steps, and Output

    Inputs

    • New PDF files uploaded in a Google Drive folder.

    Processing Steps

    1. Trigger node watches Google Drive folder for new files.
    2. If node checks if new file is a PDF.
    3. HTTP Request node sends PDF URL to PDF.co API for HTML conversion.
    4. Code node turns HTML text into a binary file format for Google Drive.
    5. Google Drive node uploads the HTML file to a folder.

    Output

    • HTML files saved in Google Drive ready for web use.

    Beginner step-by-step: How to Use This Workflow in n8n

    Import and Setup

    1. Download the workflow file from this page.
    2. In the n8n editor, select Import from File and upload the downloaded workflow.
    3. Open the imported workflow to view all steps.

    Configure Credentials and Settings

    1. Add Google Drive OAuth2 Credentials in n8n if not set.
    2. Insert the PDF.co API Key in the HTTP Request node’s HTTP Header Auth section.
    3. Update folder IDs or URLs in the Google Drive Trigger and upload nodes to match your folders.
    4. Check or edit the Code node script for output filename if needed.

    Test and Activate

    1. Run the workflow using a test PDF in the watched Google Drive folder.
    2. Verify the HTML file appears in the target folder after completion.
    3. Activate the workflow by toggling the active switch for continuous production use.

    Workflow Details: How It Works Inside n8n

    The workflow starts from the Google Drive Trigger node. It looks every minute for new PDF files in a folder. If found, an If node tests the file’s type to allow only PDFs to proceed. Next, the HTTP Request node calls PDF.co API. It sends PDF file link and asks for HTML format in the response. Then the Code node takes the returned HTML text and converts it into binary data. It formats the data so Google Drive node can upload it as an HTML file properly. Finally, the Google Drive node uploads the new HTML file into a specified folder. This ends the workflow cycle and keeps files organized automatically.

    Customization Ideas

    • Change file names dynamically in the Code node for clear naming.
    • Add more nodes to convert PDFs into DOCX, TXT, or other formats using APIs.
    • Arrange HTML files into date-based subfolders in Google Drive for better order.
    • Adjust trigger polling speed or add batch handling to process many PDFs at once.

    Common Issues and Fixes

    Error: "Invalid OAuth credentials" on Google Drive nodes Your Google Drive OAuth2 token has expired or been revoked. Go to n8n Settings → Credentials → find your Google Drive credential → click Reconnect → re-authorize with Google. This usually happens after a Google account password change or if you revoked permissions in your Google account settings. Error: HTTP 401 Unauthorized from PDF.co API Your PDF.co API key is missing, wrong, or placed in the wrong header field. In the HTTP Request node, go to Authentication → Header Auth → verify the header name is exactly "x-api-key" (lowercase) and the value is your full API key with no extra spaces. Error: HTML file not appearing in Google Drive output folder Two possible causes: (1) The Code node is not outputting binary data correctly — open the Code node, run it manually, and check the output panel shows a "binary" field with MIME type "text/html". (2) The Google Drive upload node has the wrong folder ID — double-check the folder ID in the node matches your actual output folder in Drive. Error: Workflow triggers on non-PDF files The IF node checks MIME type to filter non-PDFs. If non-PDF files are getting through, check the IF condition: it should check $json.mimeType === "application/pdf". If the MIME type field name is different in your n8n version, use the Expression editor to find the correct field name from the trigger node output. Error: PDF.co returns an error or empty HTML Large PDFs (50+ pages) or scanned PDFs (image-only, no text layer) may fail or return empty HTML. PDF.co's free tier also has a file size limit of 10MB. For scanned PDFs, you need to enable OCR in the API request by adding "ocr": true to the request body. For files over 10MB, upgrade to a PDF.co paid plan. Error: Workflow stops after IF node with no output If the uploaded file is not recognized as a PDF (MIME type mismatch), the IF node routes it to the False branch where nothing happens — this is correct behavior. Check n8n's execution log to see which branch was taken and what MIME type the file reported.

    Pre-Deployment Checklist

    • Verify Google Drive OAuth2 credentials are working and allowed access.
    • Test workflow by uploading a sample PDF in the watched folder.
    • Confirm HTTP Request node returns HTML from PDF.co successfully.
    • Check that the Code node converts HTML text to binary properly.
    • Ensure HTML uploads to right Google Drive folder and filename.
    • Use logs in n8n to catch and fix any errors before going live.

    Deployment Guide

    Once tests clear, turn on the workflow by flipping the active switch. Monitor the first runs carefully to see that conversion and uploads work smooth. Use n8n’s logs to find any issues if the process fails.

    Summary of Results

    ✓ Automatically detects new PDFs in Google Drive within 60 seconds ✓ Converts PDF to clean HTML using PDF.co API — no manual steps ✓ Handles standard PDFs and scanned PDFs (with OCR option) ✓ Saves HTML file back to Google Drive with original filename ✓ Filters non-PDF files automatically — only PDFs are processed ✓ Works for any team size — share the watched folder with anyone ✓ Customizable: change output format, folder structure, file naming ✓ Free to start — PDF.co free tier + Google Drive + n8n self-hosted

    Frequently Asked Questions

    Can the PDF.co API be replaced with another PDF to HTML service?

    Yes. Replace the HTTP Request node URL and authentication with the new API details that convert PDFs to HTML.

    What causes 'Invalid OAuth credentials' in Google Drive nodes?

    Expired or wrongly set Google Drive OAuth2 credentials cause this. Refresh or reauthorize credentials in n8n.

    Why does the HTML file not upload to Google Drive?

    The Code node may not output binary data correctly. Check that binary data has the correct MIME type and is linked to upload node.

    How to use this workflow in production inside n8n?

    Download the workflow. Import it inside n8n using 'Import from File'. Add needed credentials and update folder IDs. Test with a sample PDF. Then activate the workflow.

    Vikash Kumar
    WRITTEN BY
    Vikash Kumar
    Founder, BULDRR AI
    Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

    Related workflows.

    All 10,467+ templates →
    FREE Automate Twist Channel Creation and Messaging with n8n This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications. Open template → FREE Automate IT Support with Slack and OpenAI in n8n Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time. Open template → FREE Automate Crypto Analysis with CoinMarketCap & n8n AI Agent Discover how this unique n8n workflow leverages CoinMarketCap's multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration. Open template → FREE Generate On-Brand Blog Articles Using n8n and OpenAI This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time. Open template → FREE Automate Archiving Spotify Discover Weekly with n8n This automation workflow solves the hassle of manually archiving your Spotify Discover Weekly playlist by automatically comparing and adding only unique tracks to an archive playlist every Monday. It saves time, avoids duplicates, and keeps your archived music collection organized effortlessly using n8n. Open template → FREE Automate Analyzing Sales Call Transcripts with n8n & AI Agents This n8n workflow automates the extraction of structured insights from sales call transcripts using AI agents focused on sales, marketing, and product teams. It streamlines data processing, enabling faster decision-making and team alignment. Open template → FREE Automated SSL Expiry Alert System with n8n & Google Sheets This n8n workflow automates SSL certificate expiry monitoring by fetching URLs from Google Sheets, checking their SSL status via SSL-Checker.io, updating the sheet with results, and sending targeted email and Telegram alerts for certificates that are invalid or near expiry. Open template → FREE Automate Task Creation in ClickUp with n8n Struggling to manually create tasks in ClickUp? This beginner-friendly n8n workflow automates task creation, saving you time and reducing errors. Learn how to create tasks automatically with a simple trigger and ClickUp integration. Open template → FREE Automate Todoist Task Snoozing with n8n Workflow Struggling to manage and snooze your Todoist tasks efficiently? This detailed n8n workflow automates moving tasks between Inbox and Snoozed projects based on due dates, saving you hours of manual task juggling and ensuring timely task returns. Open template → FREE Build OpenAI Assistant with Google Drive Using n8n Automation This workflow automates creating and updating an OpenAI-powered Travel Assistant using a Google Drive file for accurate, specific user replies. It saves time by streamlining assistant updates and chat interactions seamlessly. Open template → FREE Automate WooCommerce Product Announcements on Twitter & Telegram Save time and boost your WooCommerce store's visibility by automatically posting new product announcements on Twitter and Telegram with this n8n workflow. Avoid manual posting errors and reach your audience instantly when new products go live. Open template → FREE Automate Zendesk to Asana Task Creation with n8n This detailed guide shows how to automate task creation in Asana from new Zendesk tickets using n8n. It solves the common challenge of manually duplicating support requests into project management, saving time and reducing errors. Open template → FREE Automate Image Alt Text Auditing & Enhancement with n8n & OpenAI Discover how this n8n workflow automates auditing and enhancing image alt text from any webpage using OpenAI GPT-4. It helps fix poor or missing alt attributes quickly and accurately, saving hours of manual work and improving web accessibility. Open template → FREE Create OpenAI Citation Workflow in n8n for File Retrieval This n8n workflow automates citation and source retrieval from OpenAI's vector store files, ensuring accurate content referencing and formatted output. It solves the problem of incomplete or strange citation text generated by AI, providing reliable markdown or HTML-ready citations for file-based AI assistance. Open template → FREE Automate Squarespace Order Fulfillment with n8n Workflow This n8n workflow automates order fulfillment for Squarespace Commerce by fetching pending orders and fulfilling them automatically, saving hours of manual work. It ensures timely fulfillment and customer notifications with seamless API integration. Open template → FREE Phishing Analysis Automation with n8n, URLScan.io & VirusTotal Automate phishing URL analysis with n8n using URLScan.io and VirusTotal. This workflow extracts URLs from unread Outlook emails, scans for threats, and reports via Slack, saving hours on threat detection. Open template → FREE Automate Image Analysis with Local Ollama Vision Models in n8n Struggling to extract detailed insights from images for business or research? This n8n workflow automates exhaustive image analysis using multiple local Ollama Vision Models, delivering structured, markdown-formatted results saved directly to Google Docs for collaboration and ease of use. Open template → FREE Automate Website Change Alerts N8N Telegram — Complete Guide [2026] Learn how to automate website change alerts n8n telegram with this step-by-step guide. Includes workflow examples, tips, and best practices for 2026. Open template → FREE Automate Text-to-Speech with Elevenlabs & n8n Webhook Save hours in your content creation by automating text-to-speech generation using n8n's webhook and Elevenlabs API. This workflow ensures seamless audio generation from text inputs, eliminating manual conversion errors and delays. Open template → FREE Automate Jira Notifications to Telegram with n8n Workflow This detailed guide shows how to automate Jira issue notifications to Telegram using n8n. Save hours by instantly sending updates, creation alerts, and assignment notifications to the right Telegram users, improving team communication and tracking. Open template → FREE Automate Daily Berlin Weather Updates to LINE with n8n Save time and stay informed by automatically sending daily weather updates for Berlin via LINE using n8n automation. This workflow fetches weather data every morning and messages you directly, eliminating manual checking and keeping you updated efficiently. Open template → FREE n8n Twitter Thread Generator 2026: AI Writes & Posts Threads From Any Content This n8n workflow uses AI to automatically convert any content — blog posts, videos, articles — into ready-to-post Twitter/X threads, complete with hooks and formatting. Open template → FREE Backup n8n Workflows to Bitbucket with Rate Limit Handling Automate daily backups of your n8n workflows directly to Bitbucket, intelligently managing API rate limits to avoid errors. This workflow ensures your automation definitions are safely versioned with minimal manual effort. Open template → FREE Automate Member and Activity Sync from Google Sheets to Orbit This blog explains how to automate moving community member data and their activities from Google Sheets into Orbit using n8n, solving tedious manual updates and ensuring accurate data syncing. Open template → FREE Sync Outlook Calendar with Notion via n8n Automation This workflow automates syncing Microsoft Outlook Calendar events into a Notion database. It solves the problem of manual calendar updates, saving time and reducing errors by automatically creating or updating Notion pages for your events. Open template →
    ✦ WANT THIS RUNNING IN YOUR BUSINESS?

    We’ll set it up for you.

    Tell us what you want it to do. We’ll wire the workflow, connect the credentials, and hand it over running.

    Keep exploring.