Google Drive File Picker
Tier: Server
Stirling PDF allows users to select Files for processing through tools via google drive.
Google Api Access#
To enable this features for your users, you must first set up your Google environment. This includes creating a Google Cloud project. Follow the Setting up your environment section of this guide to do so.
Stirling PDF configuration#
yaml
premium:
...
enabled: true # Enable license key checks for pro/enterprise features
proFeatures:
...
googleDrive:
enabled: true
clientId: <YOUR_CLIENT_ID>
apiKey: <YOUR_API_KEY>
appId: <YOUR_APP_ID>premium.enabled: Set totrueto enable premium features.googleDrive.enabled: Set totrueto enable google drive file picker features.googleDrive.clientId: Your Google web app's client ID. Go to Credentials and Click Create credentials > OAuth client ID.googleDrive.apiKey: API key for google api access. Go to Credentials and Click Create credentials > API key.googleDrive.appId: Google drive app ID also known as your Project Number Found in your IAM&Admin Project Settings
⚠️ Note#
You must set the Authorized Javascript origins for your OAuth client ID to include your Stirling PDF host domain or IP address.
Configurations Examples#
Below are examples of the full configuration for enabling the google Drive Picker:
yaml
premium:
enabled: true # Enable license key checks for pro/enterprise features
proFeatures:
googleDrive:
enabled: true
clientId: <YOUR_CLIENT_ID>
apiKey: <YOUR_API_KEY>
appId: <YOUR_APP_ID>bash
export PREMIUM_ENABLED=true
export PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_ENABLED=true
export PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_CLIENT_ID="<YOUR_CLIENT_ID>"
export PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_API_KEY="<YOUR_API_KEY>"
export PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_APP_ID="<YOUR_APP_ID>"bash
-e PREMIUM_ENABLED=true \
-e PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_ENABLED=true \
-e PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_CLIENT_ID="<YOUR_CLIENT_ID>" \
-e PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_API_KEY="<YOUR_API_KEY>" \
-e PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_APP_ID="<YOUR_APP_ID>" \yaml
environment:
PREMIUM_ENABLED: true
PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_ENABLED: true
PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_CLIENT_ID: <YOUR_CLIENT_ID>
PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_API_KEY: <YOUR_API_KEY>
PREMIUM_PRO_FEATURES_GOOGLE_DRIVE_APP_ID: <YOUR_APP_ID>