How to convert Word or PowerPoint files to PDF in n8n
To convert Word, Excel or PowerPoint files to PDF in n8n, send the file to the 1001fx function convertofficedocument. It accepts DOCX, XLSX and PPTX as well as the OpenDocument formats and returns a PDF.
Step by step
- 1
Get your API key
Create a free 1001fx account and copy your API key from the app.
- 2
Start the workflow
Start with a Google Drive Trigger node that watches a folder, followed by a Google Drive node that downloads the new file.
- 3
Add the 1001fx node
Add a node, search for 1001fx and pick “Convert Office Document”. Select your 1001fx credential or create one with your API key.
- 4
Fill the fields
- file
- – The office file as binary data from the previous node, for example a DOCX or PPTX file.
- 5
Use the result
The node returns the PDF as a file. Upload it with a Google Drive node or send it with a Send Email node.
convertofficedocument costs 3 credits per call. All parameters and examples: convertofficedocument reference.
Tips
- Documents with uncommon fonts can look slightly different in the PDF. Test with one of your own files first.
- Use mergepdfs to combine the converted PDF with other PDFs.
Frequently asked questions
- Which file types can I convert?
- Word (DOCX), Excel (XLSX) and PowerPoint (PPTX) files and the OpenDocument formats ODT, ODS and ODP. The old binary formats DOC, XLS and PPT are not accepted.
- Can I convert a PDF back to Word?
- No. To get the text of a document, use ocrpdf for PDFs or ocrdocx for Word files.