How to Rename a PDF File Using PDF.co and Make

3 Minutes Read

In this tutorial, we will show you how to rename a PDF using PDF.co and Make.

The scenario will retrieve a PDF from Google Drive, create a copy with a new filename using PDF.co, and save the renamed file back to Google Drive.

Step 1: Create the Google Drive Trigger

Create a Make scenario and add Google Drive — Watch Files in a Folder.

Connect your Google Drive account, select the folder containing incoming PDFs, and run the module once to retrieve a sample file.

Step 2: Download the PDF

Add Google Drive — Download a File.

Map the file ID returned by the trigger into the File ID field. This module provides the PDF file data required by PDF.co.

Step 3: Add the PDF.co Module

Add PDF.co — Add Text and Images to a PDF and connect your PDF.co account.

Configure the input:

  • Import Options: Upload a File
  • Data: Map the file data from Google Drive
  • Output File Name: Enter the new filename, including the .pdf extension

The filename can contain mapped values from previous modules, such as a date, customer name, or document ID.

Step 4: Configure the Required Annotation Fields

Add one text annotation with the following settings:

  • X: 0
  • Y: 0
  • Text: Enter a single space
  • Pages: 0

The X and Y coordinates are required by the module. The single-space annotation is invisible and allows PDF.co to process the document without adding visible content.

Set Export Type to Download a File so the processed PDF is available as file data for the next module.

See the PDF.co Add Text and Images documentation for the complete list of settings.

Step 5: Upload the Renamed PDF

Add Google Drive — Upload a File.

Configure the module:

  • Select the destination folder.
  • Map the file data returned by PDF.co.
  • Use the new output filename.

Run the scenario and confirm that Google Drive contains a copy of the PDF with the new name.

Conclusion

The scenario now retrieves a PDF from Google Drive, processes it through PDF.co with the required X and Y coordinates, and saves the resulting document under a new filename.

Related Tutorials

See Related Tutorials