Skip to main content
Best answer

Can not upload .pdf file from Google Drive to Pdf4me

  • August 10, 2024
  • 1 reply
  • 29 views

 

Hello,

I am getting a .pdf file to upload Pdf4me from Google Drive, for convert it to Word file. But with this options, I got always same error? How can i fix it?

Failed to create a word in PDF4me
The app returned "The request is missing a valid API key.".

The error "File could not be opened" typically occurs when the file input provided to the Pdf4MeCLIAPI step is not in the correct format or is inaccessible. In your case, the file input is being referenced using {{252783483__title}}, which seems to be a placeholder for the file data. However, it looks like the actual file data from the previous Google Drive step is not being correctly passed to the Pdf4MeCLIAPI step.

To resolve this, ensure that the file input in the Pdf4MeCLIAPI step is correctly mapped to the file data from the Google Drive step. Instead of using {{252783483__title}}, you should use the downloadUrl from the Google Drive step output. Update the file input field in the Pdf4MeCLIAPI step to {{252783483__downloadUrl}}. This will ensure that the correct file URL is passed to the Pdf4MeCLIAPI step, allowing it to access and convert the PDF file to Word.

Best answer by Troy TessaloneBest answer by Troy Tessalone

Hi @dogukansavas 

Make sure the file is publicly available.

You may need to adjust the GDrive File/Folder sharing preferences.

 

Use this variable: Web Content Link

At the end of the link notice it has: &export=download

 

Help link for different GDrive Link formats:

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31340 replies
  • Answer
  • August 10, 2024

Hi @dogukansavas 

Make sure the file is publicly available.

You may need to adjust the GDrive File/Folder sharing preferences.

 

Use this variable: Web Content Link

At the end of the link notice it has: &export=download

 

Help link for different GDrive Link formats:

https://community.zapier.com/show-tell-5/gdrive-file-link-formats-gsheets-gdocs-gslides-25077