Adobe PDF Services API allows you to create and manipulate PDF documents within any document workflow through scalable cloud-based web services.
Easily automate powerful PDF operations into any application, whether you want to create PDFs from a Word document, export existing PDFs to other formats in your document workflows or manipulate PDFs performing different operations on them.
Browse through the Operations and choose any combination of PDF operations for dynamic digital workflows that seamlessly integrate end-user experiences.
STEP 1: Get Credentials - Invoking PDF Services API requires an Adobe-provided credential.
To get one, click here, and complete the workflow. Be sure to copy and save the credential values to a secure location.
Validity term: The certificate associated with your credential is valid for one year.
However, you can simply regenerate a new credential or apply a new certificate to the current credential from the Document Cloud Developer Console.
STEP 2: Generate JWT - Use the credential created in STEP-1 to generate a signed JSON Web Token (JWT). There are following two ways to generate JWT:
• Using Adobe IO Console:
1. Goto Document Cloud Developer Console > Select your newly created Integration > Click on "Service Account (JWT)"
> Goto "Generate JWT" tab.
2. Paste your private.key (from the Credentials zip downloaded in STEP-1) > Click on "Generate token".
3. Save the Generated JWT and Sample cURL command to retrieve access_token in STEP-3.
• Using JWT Libraries:
The steps to generate the JWT using libraries can be referred from here.
Use sample code in your preferred programming language to generate JWT.
While generating JWT use the metascope
as mentioned here.
STEP 3: Retrieve Access Token - The PDF Services APIs require an access_token to authorize the request.
Use the "Exchange JWT" API from the Postman Collection with your client_id, client_secret (mentioned in the pdfservices-api-credentials.json
file present in the Credentials zip downloaded in STEP-1) and the above generated JWT to get the access_token OR directly use the saved Sample cURL command in STEP-2 to get the access_token.
Follow this link How to retrieve Access Token? to understand the request format to get the access_token.
STEP 4: Invoke PDF Services API - Perform any PDF operation by calling the respective PDF Services API along with the generated access_token and the client_id. Below section illustrates the detailed process to invoke the APIs.
Every PDF Operation requires below mentioned two APIs calls : one to create the job which performs the desired operation, and the other to fetch the status of its execution along with the resultant output file(s).
1. CREATE JOB API (POST):
Firstly, call CREATE JOB API with the following form parameters:
1. contentAnalyzerRequests
(Type: application/json): Includes Operation details and corresponding parameters.
2. < Input File(s) > : This can be one part (i.e. one file) or multiple parts/files per the requirement of the operation. Its name should be mentioned in contentAnalyzerRequests
at cpf:inputs.documentIn.cpf:location
.
2. JOB STATUS API (GET):
CREATE JOB API call returns a URL in the location
response header on successful job creation(http-status code 202), Invoke this URL to get the output files.
The response of this API call is of content-type mixed/multipart
containing:
1. contentAnalyzerResponse
(Type: application/json): Contains the status/error of the operation job created in CREATE JOB API.
2. < Output File(s) > : This can be one part (i.e. one file) or multiple parts/files per the requirement of the operation. Its name should be mentioned in contentAnalyzerRequests
at cpf:outputs.documentOut.cpf:location
.
For elaborative details about all the PDF operations APIs, look at the below operation sections.
Try out the various PDFServices operations by importing and running the API Collection in the Postman Application.
It contains the Exchange JWT API, APIs for all the operations, and the JOB STATUS API.
To Try out any Operation API:
Simply place the value of the access_token in Authorization
header, the client_id in the x-api-key
header and select the file to process from your local machine in the InputFile form param of the request body.
NOTE: Make sure to create a global variable named "create" with value ":create" from your postman settings before invoking the Create JOB API endpoint i.e https://cpf-ue1.adobe.io/ops/{{create}}
For Final output content:
Invoke the POLL STATUS API by placing the value of access_token in the Authorization
header, client_id in the x-api-key
header and the value of x-request-id
from the x-request-id response header returned in the Operation API POST call response.
To use the Postman Collection for a single operation, please refer to the CURL section of the respective operation.
With the evolution of our APIs, a new version of the API may contain non-backward compatible changes, and we recommend adoption of a new version upon its release. The previous version of the API will be supported for one year after the release of a new version. Adobe will use reasonably commercial efforts to provide 12-months' notice of deprecation, unless extenuating circumstances prompt a shorter notice period. Notices will be updated from time to time here, and it is your sole responsibility to check for updates from time to time. After the deprecation notice, no new enhancements are made to the service. Adobe reserves the right to modify, deprecate, or discontinue the service, in whole or in part, at any time. Learn more
Merge Word based templates with input JSON data to create Word and PDF documents
Merges the input JSON data with Word based templates to create dynamic documents. To learn more about document generation and document templates, please see the documentation.
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests="{ \"cpf:engine\":{ \"repo:assetId\":\"urn:aaid:cpf:Service-52d5db6097ed436ebb96f13a4c7bf8fb\" }, \"cpf:inputs\":{ \"documentIn\":{ \"dc:format\":\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\", \"cpf:location\":\"InputFile0\" }, \"params\":{ \"cpf:inline\":{ \"outputFormat\": \"pdf\", \"jsonDataForMerge\": { \"customerName\": \"Kane Miller\", \"customerVisits\": 100, \"itemsBought\": [ { \"name\": \"Sprays\", \"quantity\": 50, \"amount\": 100 }, { \"name\": \"Chemicals\", \"quantity\": 100, \"amount\": 200 } ], \"totalAmount\": 300, \"previousBalance\": 50, \"lastThreeBillings\": [100, 200, 300], \"photograph\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88h8AAu0B9XNPCQQAAAAASUVORK5CYII=\" } } } }, \"cpf:outputs\":{ \"documentOut\":{ \"dc:format\":\"application/pdf\", \"cpf:location\":\"multipartLabel\" } } }"' \ --form 'InputFile0=@"{{Placeholder for the input document template (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
||||||||||||||||||||||||||||||||||||||||
Response Headers:
|
|||||||||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| |||||||||||||||||||||||||||||||||||||||||
Example:
|
|||||||||||||||||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_82063_58341146_1615382912303 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{"cpf:inputs":{"documentIn":{"dc:format":"application/vnd.openxmlformats-officedocument.wordprocessingml.document","cpf:location":"InputFile0"},"params":{"cpf:inline":{"outputFormat":"pdf","jsonDataForMerge":{"customerName":"Kane Miller","customerVisits":100,"itemsBought":[{"name":"Sprays","quantity":50,"amount":100},{"name":"Chemicals","quantity":100,"amount":200}],"totalAmount":300,"previousBalance":50,"lastThreeBillings":[100,200,300],"photograph":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88h8AAu0B9XNPCQQAAAAASUVORK5CYII="}}}},"cpf:engine":{"repo:assetId":"urn:aaid:cpf:Service-52d5db6097ed436ebb96f13a4c7bf8fb"},"cpf:status":{"completed":true,"type":"","status":200},"cpf:outputs":{"documentOut":{"cpf:location":"multipartLabel","dc:format":"application/pdf"}}} --Boundary_82063_58341146_1615382912303 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabel"
%PDF-1.6 %���� 164 0 obj <</Linearized 1/L 117012/O 166/E 100832/N 2/T 116651/H [ 502 231]>> --Boundary_82063_58341146_1615382912303--
Extract content from PDF documents and output it in a structured JSON format, along with tables and figures
Extract PDF Content, Tables content and Tables/Figures renditions from a PDF document. Various available options are: (mutually exclusive)
To learn more about Extract API, please see the documentation
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create' \ --header 'Accept: application/json, text/plain, /' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --form 'contentAnalyzerRequests={ \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:58af6e2c-1f0c-400d-9188-078000185695\" }, \"cpf:inputs\": { \"documentIn\": { \"cpf:location\": \"fileInput1\", \"dc:format\": \"application/pdf\" }, \"params\": { \"cpf:inline\": { \"elementsToExtract\": [ \"text\", \"tables\" ], \"renditionsToExtract\": [ \"tables\", \"figures\"] } } }, \"cpf:outputs\": { \"elementsInfo\": { \"cpf:location\": \"jsonoutput\", \"dc:format\": \"application/json\" }, \"elementsRenditions\": { \"cpf:location\": \"fileoutpart\", \"dc:format\": \"text/directory\" } } }' \ --form 'fileInput1=@"{{Placeholder for the input document template (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<json_output_part> |
Extracted text elements info with styling info and Bounding boxes if requested. See the JSON schema for a description of the default output. (Please refer the Styling JSON schema for a description of the output when the styling option is enabled.). |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<renditions_or_table_content_part>index |
The file parts containing table content and renditions of tables/figures if requested. The part name is same as what mentioned inside For table content file part, For renditions file part, The element corresponding to this rendition or table content within the <json_output_part> json content has its "filePaths" key value as this <renditions_or_table_content_part>index |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_7486_1638004035_1618820114945 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{"cpf:inputs":{"documentIn":{"cpf:location":"fileInput1","dc:format":"application/pdf"},"params":{"cpf:inline":{"elementsToExtract":["text"],"renditionsToExtract":[]}}},"cpf:engine":{"repo:assetId":"urn:aaid:cpf:58af6e2c-1f0c-400d-9188-078000185695"},"cpf:status":{"completed":true,"type":"","status":200},"cpf:outputs":{"elementsRenditions":[],"elementsInfo":{"cpf:location":"jsonoutput","dc:format":"application/json"}}} --Boundary_7486_1638004035_1618820114945 Content-Type: application/octet-stream Content-Disposition: form-data; name="jsonoutput"
{ "version": { "json_export": "155", "page_segmentation": "53", "schema": "0.1", "structure": "1.829.0" }, "extended_metadata": { "ID_instance": "43 44 20 35 30 20 43 43 20 31 33 20 32 39 20 32 39 20 34 44 20 33 34 20 38 44 20 30 37 20 37 35 20 31 38 20 46 46 20 41 35 20 38 32 20 44 35 20 ", "ID_permanent": "46 33 20 35 46 20 41 34 20 30 41 20 30 33 20 42 34 20 34 46 20 34 45 20 39 39 20 43 44 20 35 32 20 44 45 20 31 30 20 46 37 20 46 38 20 42 46 20 ", "pdf_version": "1.7", "pdfa_compliance_level": "", "is_encrypted": false, "has_acroform": false, "is_digitally_signed": false, "pdfua_compliance_level": "", "page_count": 3, "has_embedded_files": false, "is_certified": false, "is_XFA": false, "language": "en-US" }, "elements": [ { "Bounds": [ 44.94239807128906, 756.8654937744141, 239.15545654296876, 766.8869934082031 ], "Font": { "alt_family_name": "Clean", "embedded": true, "encoding": "Custom", "family_name": "Adobe Clean", "font_type": "Type1", "italic": false, "monospaced": false, "name": "WKLBWE+AdobeClean-Regular", "subset": true, "weight": 400 }, "HasClip": false, "Lang": "en", "ObjectID": 644, "Page": 0, "Path": "//Document/Sect/P", "Text": "Adobe Vendor Security Review Program White Paper ", "TextSize": 8.5, "attributes": { "SpaceAfter": 18 }
}, -------------------------------------- }, ]
} --Boundary_7486_1638004035_1618820114945--
Convert a non-PDF File to a PDF File
Create PDF document from Microsoft Office documents (Word, Excel and PowerPoint) and other supported file formats.
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests={ \"cpf:inputs\": { \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\" } }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-1538ece812254acaac2a07799503a430\" }, \"cpf:outputs\": { \"documentOut\": { \"cpf:location\": \"multipartLabelOut\", \"dc:format\": \"application/pdf\" } } }' \ --form 'InputFile0=@"{{Placeholder for input file (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
|||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| ||||||||||||||||||||||||||
Example:
|
||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_56207_799502958_1612186721277 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "documentIn": { "dc:format": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "cpf:location": "multipartLabel" } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-1538ece812254acaac2a07799503a430" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOut": { "cpf:location": "multipartLabelOut", "dc:format": "application/pdf" } } } --Boundary_56207_799502958_1612186721277 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut"
%PDF-1.6 %���� 21 0 obj <</Linearized 1/L 86835/O 23/E 81424/N 1/T 86520/H [ 488 189 ]>> endobj --Boundary_56207_799502958_1612186721277
Convert HTML Resources to a PDF File
Creates PDFs from static/dynamic HTML or HTML(with inline CSS) or just a URL. It's a common scenario for enterprise to provide end users with a HTML template with form fields. In case of dynamic HTML this API allows you to capture the users unique data entries and then save it as PDF. Collected data is stored in a JSON file, and the source HTML file must include <script src='./json.js' type='text/javascript'></script>
. You can also provide the URL of the HTML page in inputUrl parameter.
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests="\"\"{ \"cpf:inputs\": { \"params\": { \"cpf:inline\": { \"print\": { \"includeHeaderFooter\": true }, \"pageLayout\": { \"pageHeight\": 8.5, \"pageWidth\": 11 }, \"json\": \"{\"k1\": \"v1\", \"k2\": \"v2\"}\" } }, \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/zip\" }, }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-e2ee120a2b06427cb449592f5db967e7\" }, \"cpf:outputs\": { \"documentOut\": { \"cpf:location\": \"multipartLabelOut\", \"dc:format\": \"application/pdf\" } } }\"\""' \ --form 'InputFile0="\"\"\"@\"{{Placeholder for input file (absolute path)}}\"\"\"\""'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
|||||||||||||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| ||||||||||||||||||||||||||||||||||||||||||||
Example:
|
||||||||||||||||||||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_17204_301972373_1611582119005 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "params": { "cpf:inline": { "json": "[\"a\": \"b\"]", "print": { "includeHeaderFooter": true }, "pageLayout": { "pageWidth": 11, "pageHeight": 8.5 } } }, "documentIn": { "dc:format": "application/zip", "cpf:location": "multipartLabel" } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-d28a398065794200b941f4a0f00bae19" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOut": { "cpf:location": "multipartLabelOut", "dc:format": "application/pdf" } } } --Boundary_17204_301972373_1611582119005 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut"
%PDF-1.6 %���� 17 0 obj <</Metadata 30 0 R/Pages 16 0 R/Type/Catalog>> endobj --Boundary_17204_301972373_1611582119005
Combine multiple PDF Files into a single PDF File
Combines multiple PDF files(upto 20 files) into a single PDF file. Allows specifying which pages of the source files to combine. By default all the pages of source files are considered if explicit PageRanges are not specified.
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
Multiple input file contents. The part name of file content should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests={ \"cpf:inputs\": { \"documentsIn\": [{ \"pageRanges\": { \"cpf:inline\": [{ \"start\": 1, \"end\": 4 }] }, \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/pdf\" } }, { \"pageRanges\": { \"cpf:inline\": [{ \"start\": 1, \"end\": 25 }] }, \"documentIn\": { \"cpf:location\": \"InputFile1\", \"dc:format\": \"application/pdf\" } }, { \"pageRanges\": { \"cpf:inline\": [{ \"start\": 1 }, { \"end\": 25 }, { \"start\": 1, \"end\": 25 }] }, \"documentIn\": { \"cpf:location\": \"InputFile2\", \"dc:format\": \"application/pdf\" } }] }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-916ee91c156b42349a7847a7d564fb13\" }, \"cpf:outputs\": { \"documentOut\": { \"cpf:location\": \"OutputFile\", \"dc:format\": \"application/pdf\" } } }' \ --form 'InputFile0=@"{{Placeholder for input file (absolute path)}}"' \ --form 'InputFile1=@"{{Placeholder for input file (absolute path)}}"' \ --form 'InputFile2=@"{{Placeholder for input file (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
|||||||||||||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| ||||||||||||||||||||||||||||||||||||||||||||
Example:
|
||||||||||||||||||||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_58079_229552553_1612198692505 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "documentsIn": [ { "documentIn": { "dc:format": "application/pdf", "cpf:location": "multipartLabel1" }, "pageRanges": { "cpf:inline": [ { "start": 1, "end": 2 }, { "start": 4 } ] } } ] }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-916ee91c156b42349a7847a7d564fb13" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOut": { "cpf:location": "multipartLabelOut", "dc:format": "application/pdf" } } } --Boundary_58079_229552553_1612198692505 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut"
%PDF-1.7 %���� 163 0 obj <</Linearized 1/L 283136/O 165/E 258795/N 2/T 282755/H [ 521 287 ]>> endobj --Boundary_58079_229552553_1612198692505
Compress a PDF File
Compress PDFs to reduce the file size prior to performing workflow operations that use bandwidth or memory. Supported levels of compression which reduces the file size of pdf:
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests={ \"cpf:inputs\": { \"params\": { \"cpf:inline\": { \"compressionLevel\": \"MEDIUM\" } }, \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/pdf\" } }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-f37d36f4e6724eed92149a8ff35ea061\" }, \"cpf:outputs\": { \"documentOut\": { \"cpf:location\": \"multipartLabelOut\", \"dc:format\": \"application/pdf\" } } }' \ --form 'InputFile0=@"{{Placeholder for input file (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
||||||||||||||||||||||||||||||||||
Response Headers:
|
|||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| |||||||||||||||||||||||||||||||||||
Example:
|
|||||||||||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_56042_623305933_1612191132581 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "documentIn": { "dc:format": "application/pdf", "cpf:location": "multipartLabel" }, "params": { "cpf:inline": { "compressionLevel": "MEDIUM" } } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-f37d36f4e6724eed92149a8ff35ea061" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOut": { "cpf:location": "multipartLabelOut", "dc:format": "application/pdf" } } } --Boundary_56042_623305933_1612191132581 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut"
%PDF-1.6 %���� 7 0 obj <</Linearized 1/L 477587/O 9/E 207563/N 2/T 477328/H [ 416 144 ]>> endobj --Boundary_56042_623305933_1612191132581
Convert a PDF File to a non-PDF File
Export a PDF file into a number of supported formats. By default Exporting to an image produces a zip archive containing one image per page. Each image file name ends with _<unpadded_page_index_number>. For example, a PDF file with 15 pages will generate 15 image files. The first file name ends with _1 and the last file name ends with _15. To get the results of Exporting to image as non zip output, please set the outputType parameter to listOfPageImages and use documentOutList key in cpfOutputs.
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests="\"{ \"cpf:inputs\": { \"params\": { \"cpf:inline\": { \"targetFormat\": \"docx\", } }, \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/pdf\" } }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-26c7fda2890b44ad9a82714682e35888\" }, \"cpf:outputs\": { \"documentOut\": { \"cpf:location\": \"multipartLabelOut\", \"dc:format\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\" } } }\""' \ --form 'InputFile0="\"\"\"@\"{{Placeholder for input file (absolute path)}}\"\"\"\""'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
|||||||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| ||||||||||||||||||||||||||||||||||||||
Example:
|
||||||||||||||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_55947_757547533_1612189970577 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "params": { "cpf:inline": { "targetFormat": "docx" } }, "documentIn": { "dc:format": "application/pdf", "cpf:location": "multipartLabel" } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-26c7fda2890b44ad9a82714682e35888" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOut": { "cpf:location": "multipartLabelOut", "dc:format": "application/vnd.openxmlformats-officedocument.wordprocessingml.document" } } } --Boundary_55947_757547533_1612189970577 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut"
PK�sAR���p�$Rtword/document.xmlUT --Boundary_55947_757547533_1612189970577
Convert a PDF File to a Linearized or Web Optimized PDF File
Linearize a PDF Document to create a web-optimized PDF Document which supports incremental access in network environments.
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests={ \"cpf:inputs\": { \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/pdf\" } }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-e4d5f0b75e5d43ea9eaa187860772d27\" }, \"cpf:outputs\": { \"documentOut\": { \"cpf:location\": \"multipartLabelOut\", \"dc:format\": \"application/pdf\" } } }' \ --form 'InputFile0=@"{{Placeholder for input file (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
|||||||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| ||||||||||||||||||||||||||||||||||||||
Example:
|
||||||||||||||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_56132_371931165_1612191628229 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "documentIn": { "dc:format": "application/pdf", "cpf:location": "multipartLabel" } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-e4d5f0b75e5d43ea9eaa187860772d27" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOut": { "cpf:location": "multipartLabelOut", "dc:format": "application/pdf" } } } --Boundary_56132_371931165_1612191628229 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut"
%PDF-1.7 %���� 230 0 obj <</Linearized 1/L 161410/O 232/E 152324/N 1/T 161072/H [ 546 204 ]>> endobj --Boundary_56132_371931165_1612191628229
Perform OCR on a PDF File
Perform OCR on PDF Document by providing specific language and type.
There are two types which produce a different result:
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests={ \"cpf:inputs\": { \"params\": { \"cpf:inline\": { \"ocrLang\": \"en-US\", \"ocrType\": \"searchable_image\" } }, \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/pdf\" } }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-7e6a5d2b6bb141d7832398076914a07b\" }, \"cpf:outputs\": { \"documentOut\": { \"cpf:location\": \"multipartLabelOut\", \"dc:format\": \"application/pdf\" } } }' \ --form 'InputFile0=@"{{Placeholder for input file (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
|||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| ||||||||||||||||||||||||||||||||
Example:
|
||||||||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_17041_1849944425_1611579786624 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "params": { "cpf:inline": { "ocrType": "searchable_image_exact", "ocrLang": "en-US" } }, "documentIn": { "dc:format": "application/pdf", "cpf:location": "multipartLabel" } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-7e6a5d2b6bb141d7832398076914a07b" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOut": { "cpf:location": "multipartLabelOut", "dc:format": "application/pdf" } } } --Boundary_17041_1849944425_1611579786624 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut"
%PDF-1.6 %���� 57 0 obj <</Linearized 1/L 612046/O 59/E 181534/N 4/T 611669/H [ 483 221 ]>> endobj --Boundary_17041_1849944425_1611579786624
Rotate and delete pages of a PDF File
Selectively rotate or delete pages in a PDF document. For example, you can change portrait view to landscape view or remove certain pages from a PDF document.
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests={ \"cpf:inputs\": { \"params\": { \"cpf:inline\": { \"pageActions\": [{ \"pageAction\": { \"rotate\": { \"pageRanges\": [{ \"start\": 1, \"end\": 1 }], \"angle\": 90 } } }] } }, \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/pdf\" } }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-4735fcf3cf924b25879e6fcf7aa84ad4\" }, \"cpf:outputs\": { \"documentOut\": { \"cpf:location\": \"cid:multipartLabelOut\", \"dc:format\": \"application/pdf\" } } }' \ --form 'InputFile0=@"{{Placeholder for input file (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
|||||||||||||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| ||||||||||||||||||||||||||||||||||||||||||||
Example:
|
||||||||||||||||||||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_55448_1966704134_1612184524899 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "params": { "cpf:inline": { "pageActions": [ { "pageAction": { "delete": { "pageRanges": [ { "start": 1, "end": 1 } ] } } }, { "pageAction": { "rotate": { "angle": 90, "pageRanges": [ { "start": 1 } ] } } } ] } }, "documentIn": { "dc:format": "application/pdf", "cpf:location": "multipartLabel" } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-4735fcf3cf924b25879e6fcf7aa84ad4" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOut": { "cpf:location": "multipartLabelOut", "dc:format": "application/pdf" } } } --Boundary_55448_1966704134_1612184524899 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut"
%PDF-1.7 %���� 92 0 obj <</Linearized 1/L 41554/O 94/E 34155/N 1/T 41240/H [ 486 187 ]>> endobj --Boundary_55448_1966704134_1612184524899
Extract basic information about a PDF document.
Extract basic information about the document such as page count, pdf version, if the file is encrypted, if the file linearized, if the file contains embedded files etc.
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'Accept: application/json, text/plain, /' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests="{ \"cpf:inputs\": { \"params\": { \"cpf:inline\": { \"pageLevel\": true } }, \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/pdf\" } }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-fd9b06fe2f164df7975254581d6ab00e\" }, \"cpf:outputs\": { \"metadata\": { \"dc:format\": \"application/json\", \"cpf:location\": \"jsonoutput\" } } }"' \ --form 'InputFile0=@"{{Placeholder for input file (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
||||||
Response Headers:
|
|||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| |||||||
Example:
|
|||||||
<json_output_part> |
Extracted text elements info with styling info and Bounding boxes if requested. See the JSON schema for a description of the default output. (Please refer the Styling JSON schema for a description of the output when the styling option is enabled.). |
||||||
{{EXAMPLE_FILE_PART}} |
{{EXAMPLE_FILE_PART_DESC}} |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_3278_1105148963_1631020312527 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse" { "cpf:inputs": { "params": { "cpf:inline": { "pageLevel": true } }, "documentIn": { "cpf:location": "InputFile0", "dc:format": "application/pdf" } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-fd9b06fe2f164df7975254581d6ab00e" }, "cpf:status": { "completed": true, "type": "", "status": 200 }, "cpf:outputs": { "metadata": { "cpf:location": "file", "dc:format": "application/json" } } } --Boundary_3278_1105148963_1631020312527 Content-Type: application/json Content-Disposition: form-data; name="jsonoutput" { "pages": [ { "page_number": 0, "is_scanned": false, "width": 612, "has_structure": false, "content": { "number_of_images": 0, "only_images": false, "has_text": true, "has_images": false, "is_empty": false }, "height": 792 } ], "document": { "is_linearized": false, "pdfe_compliance_level": "", "is_tagged": false, "is_portfolio": false, "is_certified": false, "is_encrypted": false, "info_dict": { "CreationDate": "D:19980204171401Z", "Producer": "Acrobat Distiller 3.0 for Windows" }, "is_FTPDF": false, "pdf_version": "1.2", "has_acroform": false, "file_size": "4.2 KB", "is_signed": false, "incremental_save_count": 0, "has_embedded_files": false, "is_XFA": false, "fonts": [ { "name": "Times-Roman", "font_type": "Type1", "family_name": "Titlingmes" }, { "name": "Courier", "font_type": "Type1", "family_name": "Courier" }, { "name": "Courier-Bold", "font_type": "Type1", "family_name": "Courier" } ], "pdfa_compliance_level": "", "pdfvt_compliance_level": "", "pdfx_compliance_level": "", "pdfua_compliance_level": "", "XMP": "", "page_count": 1 } } --Boundary_3278_1105148963_1631020312527--
Add encryption and/or restrict permissions on a PDF File
Secure a PDF Document with user or/and owner password and set the restrictions on certain features like printing, editing and copying in the PDF document. You can specify the type of content to be encrypted with your specified encryption algorithm.
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests={ \"cpf:inputs\": { \"params\": { \"cpf:inline\": { \"passwordProtection\": { \"userPassword\": \"user_password\", \"ownerPassword\": \"owner_password\" }, \"permissions\": [\"PRINT_LOW_QUALITY\", \"PRINT_HIGH_QUALITY\", \"EDIT_CONTENT\", \"EDIT_FILL_AND_SIGN_FORM_FIELDS\", \"EDIT_ANNOTATIONS\", \"EDIT_DOCUMENT_ASSEMBLY\", \"COPY_CONTENT\"], \"contentToEncrypt\": \"ALL_CONTENT_EXCEPT_METADATA\", \"encryptionAlgorithm\": \"AES_128\" } }, \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/pdf\" } }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-627aa455ac5d4c338ad49ca882e0fce5\" }, \"cpf:outputs\": { \"documentOut\": { \"cpf:location\": \"multipartLabelOut\", \"dc:format\": \"application/pdf\" } } }' \ --form 'InputFile0=@"{{Placeholder for input file (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Headers:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_2011_1320772175_1611229313456 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "params": { "cpf:inline": { "passwordProtection": { "userPassword": "123", "ownerPassword": "321" }, "contentToEncrypt": "ALL_CONTENT_EXCEPT_METADATA", "encryptionAlgorithm": "AES_128", "permissions": [ "PRINT_LOW_QUALITY", "PRINT_HIGH_QUALITY", "EDIT_CONTENT", "EDIT_FILL_AND_SIGN_FORM_FIELDS", "EDIT_ANNOTATIONS", "EDIT_DOCUMENT_ASSEMBLY", "COPY_CONTENT" ] } }, "documentIn": { "dc:format": "application/pdf", "cpf:location": "multipartLabel" } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-627aa455ac5d4c338ad49ca882e0fce5" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOut": { "cpf:location": "multipartLabelOut", "dc:format": "application/pdf" } } } --Boundary_2011_1320772175_1611229313456 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut"
%PDF-1.6 %���� 16 0 obj <</Linearized 1/L 618534/O 19/E 613053/N 1/T 618209/H [ 508 220 ]>> endobj --Boundary_2011_1320772175_1611229313456
Remove password protection from a PDF File
Remove security from a PDF document. If the PDF is protected by owner password then the owner password is required in the field:contentAnalyzerRequests.params.cpf:inline:password
to remove security otherwise user password is required.
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests={ \"cpf:inputs\": { \"params\": { \"cpf:inline\": { \"password\": \"password\" } }, \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/pdf\" } }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-d80dc37d3aee44a8839e3429360db9a7\" }, \"cpf:outputs\": { \"documentOut\": { \"cpf:location\": \"multipartLabelOut\", \"dc:format\": \"application/pdf\" } } }' \ --form 'InputFile0=@"{{Placeholder for input file (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
||||||||||||||||||||||||||||||||||||||||||||||
Response Headers:
|
|||||||||||||||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| |||||||||||||||||||||||||||||||||||||||||||||||
Example:
|
|||||||||||||||||||||||||||||||||||||||||||||||
<output_file_content_part> |
The file part containing output file content. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_459_1085663309_1611227788814 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "params": { "cpf:inline": { "password": "password" } }, "documentIn": { "dc:format": "application/pdf", "cpf:location": "multipartLabel" } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-d80dc37d3aee44a8839e3429360db9a7" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOut": { "cpf:location": "multipartLabelOut", "dc:format": "application/pdf" } } } --Boundary_459_1085663309_1611227788814 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut"
%PDF-1.7 %���� 2080 0 obj <</Linearized 1/L 376659/O 2082/E 86236/N 53/T 375889/H [ 520 673 ]>> endobj --Boundary_459_1085663309_1611227788814
Split a PDF File into multiple PDF Files
Split a PDF document into multiple smaller documents by simply specifying either the number of files, pages per file, or page ranges. Various available options are: (mutually exclusive)
https://cpf-ue1.adobe.io/ops/:create
Parameter | Required | Description | |
---|---|---|---|
contentAnalyserRequests | true |
The JSON part containing the information about the input, parameters and the output. |
|
application/json
|
|||
Example:
|
|||
<file_content_part_name> | true |
The input file content. The part name should be same as what mentioned inside |
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
Prefer | false |
The time in seconds, to wait for the operation to complete so as to get the multipart/mixed data containing the Output file contents in the Submit (POST) call itself. Different Behaviours as per the wait time provided:
|
Parameter | Required | Description |
---|---|---|
respondWith | true |
Url-encoded value of {"reltype": "http://ns.adobe.com/rel/primary"} |
HTTP Status | Reason |
---|
200 | The operation has failed due to some reason before the |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
201 | The operation is completed successfully before the |
||||||||
Response Headers:
|
|||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
|
202 | Request creation for the operation and status uri generated, which can be found in the 'location' header. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/json;charset=UTF-8
|
|||||||||
Example:
|
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \ --header 'Authorization: Bearer {{Placeholder for token}}' \ --header 'x-api-key: {{Placeholder for client_id}}' \ --header 'Prefer: respond-async,wait=0' \ --form 'contentAnalyzerRequests={ \"cpf:inputs\": { \"params\": { \"cpf:inline\": { \"pageRanges\": [{ \"start\": 2, \"end\": 4 }, { \"start\": 7, \"end\": 9 }] } }, \"documentIn\": { \"cpf:location\": \"InputFile0\", \"dc:format\": \"application/pdf\" } }, \"cpf:engine\": { \"repo:assetId\": \"urn:aaid:cpf:Service-d99c7660cba14e5c98f9023221dab40f\" }, \"cpf:outputs\": { \"documentOutList\": { \"cpf:location\": \"multipartLabelOut\", \"dc:format\": \"text/directory\" } } }' \ --form 'InputFile0=@"{{Placeholder for input file (absolute path)}}"'
Poll the location URL returned in the response header of POST call to get the generated output file.
https://cpf-ue1.adobe.io/ops/id/<x-request-id>
Parameter | Required | Description |
---|---|---|
x-api-key | true |
The clientId from the generated credentials. |
HTTP Status | Reason |
---|
200 | Response of content-type: Multipart/Mixed, containing JSON object named as contentAnalyzerResponse and file part containing output file content only if the |
||||||||||||||||||||||||||||||||||||||||||||||
Response Headers:
|
|||||||||||||||||||||||||||||||||||||||||||||||
Response Body:multipart/mixed; boundary=some_boundary;charset=UTF-8
| |||||||||||||||||||||||||||||||||||||||||||||||
Example:
|
|||||||||||||||||||||||||||||||||||||||||||||||
<output_file_content_part>index |
The file parts containing output file contents. The part name is same as what mentioned inside |
400 | Bad Request. The request was invalid or cannot be otherwise served. |
|||||||||||||||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
||||||||||||||||||||||||||||||||||
Example:
|
401 | Unauthorized. Authentication credentials were missing or incorrect. |
||||||||
Response Headers:
|
|||||||||
Response Body:application/vnd.adobe.dc+json;profile="https://dc-api.adobe.io/schemas/error_v1.json"
|
408 | Request Timed Out. Some operation has timed out due to client issue. |
||||||
Response Headers:
|
|||||||
Response Body:application/json;charset=UTF-8
|
429 | Caller doesn't have sufficient quota for this operation. |
|||||||||
Response Headers:
|
||||||||||
Response Body:application/json;charset=UTF-8
|
500 | Internal Server Error. The server has encountered an error and is unable to process your request at this time. |
|||||||||||||||||||||
Response Headers:
|
||||||||||||||||||||||
Response Body:application/json;charset=UTF-8
|
--Boundary_57481_407432268_1612197912964 Content-Type: application/json Content-Disposition: form-data; name="contentAnalyzerResponse"
{ "cpf:inputs": { "params": { "cpf:inline": { "fileCount": 4 } }, "documentIn": { "dc:format": "application/pdf", "cpf:location": "multipartLabel" } }, "cpf:engine": { "repo:assetId": "urn:aaid:cpf:Service-d99c7660cba14e5c98f9023221dab40f" }, "cpf:status": { "completed": true, "type": "", "status": 200, "report": "" }, "cpf:outputs": { "documentOutList": [ { "cpf:location": "multipartLabelOut0", "dc:format": "application/pdf" }, { "cpf:location": "multipartLabelOut1", "dc:format": "application/pdf" }, { "cpf:location": "multipartLabelOut2", "dc:format": "application/pdf" }, { "cpf:location": "multipartLabelOut3", "dc:format": "application/pdf" } ] } } --Boundary_57481_407432268_1612197912964 Content-Type: application/octet-stream Content-Disposition: form-data; name="multipartLabelOut3"
%PDF-1.6 %���� 1 0 obj <</MarkInfo<>/Metadata 2 0 R/Outlines 5 0 R/Pages 3 0 R/StructTreeRoot 6 0 R/Type/Catalog>> endobj --Boundary_57481_407432268_1612197912964