Google Drive - Convert .xlsx to .pdf

Describe the problem/error/question

Hello, I am creating a automation to fill a certain file for my company. At the end of the month I need to export it to .pdf

I tried to use the Good Drive node to automatically do that to me, downloading it and upload it somewhere else, but I am having problems to do it so. I searched the forums here, but I could not find a solution that would use the Google Drive node

What is the error message (if any)?

No errors

Please share your workflow

Share the output returned by the last node

Even if I try to name the file with “*.pdf“, it shows like this:

Information on your n8n setup

  • n8n version: 2.8.3
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): self-hosted Docker
  • Operating system: Linux
1 Like

Hey, the issue is that Google Drive’s PDF conversion only works on native Google Sheets files, not .xlsx files. Your file is still in Excel format on Drive so the node just downloads it as-is and slaps a .pdf extension on it. You need to convert it to a Google Sheet first (upload with “Convert to Google Sheets” enabled), then the PDF export in the Download node will actually work.

1 Like

That was it! Good catch, brother.

Also, to document for future searches, inside Google Drive there is a button to save the file to a Google Sheet format. It will create another file with the same name, but converted.