This n8n workflow automates the process of converting newly uploaded PDF files in Google Drive into HTML format and saving the resulting HTML files back to Google Drive. The workflow is triggered automatically whenever a PDF is added to a specific folder, streamlining document transformation for web display, archiving, or further processing.
The workflow begins with a Google Drive Trigger node that monitors a designated folder for new files. When a file is created, it passes through an ‘If’ node that checks if the file’s MIME type is PDF. If the condition is met, an HTTP Request node sends a request to the PDF.co API to convert the PDF to HTML format, providing the link to the file.
The API response, containing the HTML content, is then processed by a ‘Convert to Binary File’ node, which converts the HTML string into a base64-encoded binary format, suitable for storage. Finally, a Google Drive node saves the converted HTML file into a specified folder, completing the automated conversion cycle.
This workflow is practical for organizations that need to automate the conversion of PDF documents into web-friendly formats, enabling easier sharing, display, and archival of document content without manual intervention.
Reviews
There are no reviews yet.