Getting started with Adobe PDF Services API and Java
Developers can get started in just a few minutes with the ready to run sample files provided for accessing all the available web services. This tutorial walks you through all the steps to start running the samples using the PDF Services Java SDK:
Step 1: 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 which will save you the manual step of adding them to your project.
Next, choose Java as your language to receive the Java specific samples then click on the ‘Create Credentials’ button.
You’ll receive a .zip file to download called PDFToolsSDK-JavaSamples.zip which can be saved to your local file system.
Step 2: Setup your Java environment
- Install Java 8 or above if you haven’t already.
- Run
javac -version
to verify your install. - Verify the JDK bin folder is included in the PATH variable (method varies by OS).
- Install Maven using your preferred tool if you haven’t already.
The personalized samples provide everything from ready-to-run sample code, an embedded credential json file, and pre-configured connections to dependencies.
- Download the sample project.
- Build the sample project with Maven: mvn clean install.
- Test the sample code on the command line or in your preferred IDE.
Final thoughts
The PDF Services API can help you eliminate manual processes by automating common workflows and shifting the processing burden to the cloud. In a world where every browser treats PDF differently, leveraging the Adobe PDF Embed API along with the PDF Services API, you can create streamlined, reliable, and predictable processes that run and display correctly every time regardless of platform or device.
Resources and next steps
-
For additional help and support, visit the Adobe Acrobat Services APIs community forum
-
PDF Services API Documentation
-
FAQ for PDF Services API questions
-
Contact us for questions on licensing and pricing
-
Related articles
New PDF Services API offers even more features for document workflows
July Release of Adobe Acrobat Services: PDF Embed and PDF Services