Hi All,
I am Using Appian Cloud Application. I have the requirement to merge the PDF files stored in either Windows or LINUX platform ( basically it should support for both). I need REST API which can be called from Appian and do the Merge document task. Please help me out regarding this
You can use Aspose.PDF Cloud API via some REST client to merge PDF documents. Please note currently Aspose.PDF Cloud API does not support merging PDF documents from a local drive. You need to upload PDF documents to a cloud storage and can download output document after merging. Please find sample cURL commands for your reference.
# First get Access Token
# Get Customer Key and Customer ID from https://dashboard.aspose.cloud/
curl -X POST "https://api.aspose.cloud/connect/token"
-d "grant_type=client_credentials&client_id=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxx"
-H "Content-Type: application/x-www-form-urlencoded"
-H "Accept: application/json"
# Upload a local file to cloud storage
curl -X PUT "https://api.aspose.cloud/v3.0/pdf/storage/file/Test.pdf"
-H "accept: application/json"
-H "authorization: Bearer [Access_Token]"
-H "Content-Type: multipart/form-data"
-H "x-aspose-client: Containerize.Swagger"
-F "File"="@C:/Temp/Test.pdf"
# Merge multiple PDF files from cloud storage
curl -X PUT "https://api.aspose.cloud/v3.0/pdf/Merge.pdf/merge"
-H "accept: application/json"
-H "authorization: Bearer [Access_Token]"
-H "Content-Type: application/json"
-H "x-aspose-client: Containerize.Swagger"
-d "{ "List": ["Test.pdf","Test1.pdf","Test2.pdf" ]}"
# Download merged PDF file to local drive
curl -X GET "https://api.aspose.cloud/v3.0/pdf/storage/file/Merge.pdf"
-H "accept: multipart/form-data"
-H "authorization: Bearer [Access_Token]"
-H "x-aspose-client: Containerize.Swagger"
--output C:/Temp/Merge.pdf