Rename PDF File using PDF.co and Make
In this tutorial, we will show you how to rename PDF using PDF.co and Make. We prepared a sample document below.
![Sample PDF](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fa8e91b3ddb15e6261b4b41c7785a5a03b69a35b6-994x690.png&w=2048&q=75)
Step 1: Create a Scenario
First, click on the Create a Scenario button at the upper right corner of your dashboard.
Step 2: Select Google Drive App
Now, let’s add a module and choose the Google Drive app for the App Event.
![Selecting Google Drive App on Make](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F304e1020c5525431cb73010fa072b6d7b9f6301d-815x403.png&w=1920&q=75)
Step 3: Download a File
Next, select the Download a file to get a file in Google Drive.
![Download a File](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fd3eb065e56759c05d8942f16e89e084a661fa872-963x845.png&w=2048&q=75)
Step 4: Google Drive Connection
Now, let’s connect our Google Drive.
- In the Enter a file ID field, enter the Select from the list to fill out the Google Drive Connection.
- In the Choose a Drive field, input My Drive where the file is located.
- For the File ID field, input the specific folder where the files are restored.
![Google Drive Connection](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F60e12dadb18a2e57c2b085e8e9fdd0b0002d62f4-823x707.png&w=1920&q=75)
Step 5: Select PDF.co App
Now, let’s add another module and select the PDF.co app.
![Selecting PDF.co app](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F5cbea913fabacdf71565fcf9811ed4e08e710b14-883x439.png&w=1920&q=75)
Step 6: Add Text And Images
Under the PDF.co app, select Add text and Images module to fill out the text,
name, and pages fields.
![Add text and images](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fdb66157baeb0d34c04f9a5c6c5068ba7d445948f-986x431.png&w=2048&q=75)
Step 7: PDF.co Configuration
Now, let’s set up the PDF.co configuration.
- Under the Input File field, select Import PDF from URL.
- In the URL field, input the link of the specific file.
- For the Output File Name field, input the new name of your PDF.
- In the Parameters field, under the Text Annotations leave a space for the Text and input 0 for the Pages.
Now, kindly Test and Run your file to make sure there are no errors in our scenario.
![PDF.co configuration](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F2ee30eb52fc4060581aa9e6b88e3a9d6d980e2a2-609x953.png&w=1920&q=75)
Step 8: Test Result
Excellent! The test runs successfully. You can now use the PDF.co generated URL to view the result.
![Test result](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fb9cd00d644f716280abcc15dfa8d44c10a9d49cc-408x575.png&w=828&q=75)
Step 9: Source File Output
Here is the result of the PDF that we successfully renamed.
![Source file output](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F898f388b1f8055d70a3598e032339460499b28ff-986x691.png&w=2048&q=75)
In this tutorial, you learned how to rename a PDF file using PDF.co and Make. You also learned how to use the Add Text and Images module in changing the name of the PDF using dummy data.