workflows.fit
Back to n8n workflows
n8n templateFreeBy WeblineIndia

Convert PDF to HTML using PDF.co and Google Drive

This n8n workflow automates the process of converting a newly stored PDF file from Google Drive into an HTML file and saving it back to Google Drive. The workflow is triggered whenever a new PDF is uploaded to a speci...

DevelopmentCore NodesData & StorageGoogle Drive TriggerIfHttp RequestGoogle Drive
Loading interactive preview...

Template notes

This n8n workflow automates the process of converting a newly stored PDF file from Google Drive into an HTML file and saving it back to Google Drive. The workflow is triggered whenever a new PDF is uploaded to a specific folder, ensuring seamless conversion and storage without any manual intervention.

This workflow provides an efficient, automated solution for converting PDFs to HTML, eliminating the need for manual file handling and ensuring a smooth document transformation process. It is particularly useful for scenarios where PDFs need to be dynamically converted and stored in an organised manner for web usage, archiving, or further processing. Prerequisites :

Before setting up this workflow, ensure the following: - PDF.co API Key: Sign up at PDF.co and obtain an API key for PDF to HTML conversion. - Proper Authentication: Ensure authentication is configured for Google Drive in n8n.

Customisation Options : - Modify the API request to convert PDFs to other formats like Text, CSV, or XML. - Extend the IF Node to reject files based on size or other properties. - Send a notification once the conversion is complete using an Email or Telegram Node.

Steps :

Step 1: Google Drive Trigger Node (Watch for New Files)

- Click "Add Node" and search for Google Drive. - Select "Google Drive Trigger" and add it to the workflow. - Authenticate with your Google Account. - Select the folder to monitor. - Set the trigger to activate whenever a new file is added. - Click "Execute Node" to test. - Click "Save".

Step 2: IF Node (Check if File is a PDF)