How to Fill PDF Form using PDF.co and AppGyver
In this tutorial, we will show you how to fill PDF form using PDF.co and AppGyver.
Create New Project
- To begin. First, log into your AppGyver account and click on the Create New project button.
Data & Resource
- Next, click on the Data menu and Add Data Resource.
Setup Base Configuration
Let’s set up the base configuration.
- First, enter the Resource ID.
- Next, add the Resource URL. You can get the resource URL in this link.
- Under the HTTP Header, enter
Content-Type
the Key and Label. Then, addapplication/json
for the Value. - For the second Key and Label, type
x-api-key
and add yourPDF.co API Key
for the Value. You can get the API Key in your PDF.co dashboard.
Create Record Tab
- Then, click the Create Record tab and open the Schema page.
Setup Schema Configuration
Let’s set up the schema configuration.
- Select Custom schema to create a record.
- Next, add the property of the PDF.co Fill PDF Form parameters. Type
fields
for the Key. - Then, select
List
the Value type. - For the List item type, choose
Object
. - For the Add New Property, type
fieldname
,pages
, andtext
as the property name. - Let’s add another property. Type
url
for the Key and selectWeb URL
for the Value type.
Open Test Tab
- After adding the parameters, go to the Test tab and click on the Custom object button.
Custom Object Properties
Let’s add the parameters of the field objects.
- For the URL field, input the direct URL of your source file.
- In the Field name field, enter the form field parameters. You can get the form fields in this link.
- In the Pages field, enter the list of pages separated by a comma. Type
0
for the first page, and1
for the second page. - In the Text field, type in your preferred text name.
Click "Run Test"
- Now, click on the Run Test button to see the result.
- If the test was successful there should be a URL - paste it into your browser to view the output.