Obtaining credentials and downloading sample files
The first step is to obtain a credential (API Key) to unlock use. Sign up for the free trial here and click on ‘Get Started’ to create your new credentials.
It’s important to choose a ‘Personal Account’ to sign up for the free trial:
In the next step you’ll choose the PDF Services API Service, then add a name and description for your credentials.
There is a checkbox to ‘Create personalized code sample’. Choose this option to have your new credentials automatically added to your sample files, skipping the manual step.
Next, choose Node.js as your language to receive the Node.js specific samples and click on the ‘Create Credentials’ button.
You’ll receive a .zip file to download called PDFToolsSDK-Node.jsSamples.zip which can be saved to your local file system.
Adding your credentials to the code samples
If you chose the option for ‘Create personalized code sample’ then you do not must to manually add your client ID to the code sample files and can skip the next step and go directly to the Running code samples section below.
If you did not choose the option for ‘Create personalized code sample’, then you will must to copy the client ID (API Key) from the Adobe.io Console:
Unzip the contents of PDFToolsSDK-Node.jsSamples.zip.
Go to the root directory under adobe-dc-pdf-tools-sdk-node-samples folder.
Open pdftools-api-credentials.json with any text editor or IDE.
Paste the credential into the field for client ID in the code:
{
"client_credentials": {
"client_id": "abcdefghijklmnopqrstuvwxyz",
Save the file and continue to the next step to run the code samples.