Free Support Forum - aspose.com

How to retrieve pdf files stored in SAASPOSE via REST from Salesforce

I am trying to make a rest call, but i am again and again redirected to the error page. Please help me with some live example, or let me know the exact format of url that i need to hit, in order to GET a pdf file’s fields.

Using AppId and how to create a Signature.

Thanks
Varun


Submitted from: https://apps.saaspose.com/App

Hi Varun,

Please have a look at http://saaspose.com/docs/display/pdf/1.4+-+Saaspose.Pdf+REST+Live+Examples for live examples to extract all or specific fields from a PDF. Request format is http://api.saaspose.com/v1.0/pdf/f1040.pdf/fields?appSID=a13a914f-75c2-4aa6-b91d-4dbaae38d60e&signature=K3qjd928VhHO5qItdA2HNxKlEh4

Here 'appSID' parameter is the App SID that you get after signing up at saaspose.com and 'signature' parameter is the base64 encoded App key. Please check http://saaspose.com/docs/display/pdf/Saaspose.Pdf+REST+API+Reference+%28v1.0%29 for Saaspose.Pdf API, http://saaspose.com/docs/display/pdf/1.2+-+Saaspose.Pdf+Examples for REST examples and http://saaspose.com/docs/display/pdf/1.3+-+Saaspose.Pdf+SDKs for SDK examples.

Please also share your development environment to get links to more specific examples.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hi

Please find the URL I am hitting and the response I am getting.

Endpoint=
http://api.saaspose.com/v1.0/pdf/New_Application.pdf/fields?appSID=aa4d9d34-xxxx-yyyy-a9ec-e53dabcdef&signature=ZDASsdsQWfsasWFiYmM1ODU0ZWUwMGZjYjQ5ZTc=

*The above mentioned is the exact url I am hitting, I have changed my
appSID and SIGNATURE String in the url. Please let me know what wrong is
happening from my side.*

Method=GET]

System.HttpResponse[Status=Internal Server Error, StatusCode=500]

################ Response #################<?xml version="1.0"
encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">

Request Error
BODY { color: #000000; background-color: white; font-family:
Verdana; margin-left: 0px; margin-top: 0px; } #content { margin-left: 30px;
font-size: .70em; padding-bottom: 2em; } A:link { color: #336699;
font-weight: bold; text-decoration: underline; } A:visited { color:
#6699cc; font-weight: bold; text-decoration: underline; } A:active { color:
#336699; font-weight: bold; text-decoration: underline; } .heading1 {
background-color: #003366; border-bottom: #336699 6px solid; color:
#ffffff; font-family: Tahoma; font-size: 26px; font-weight: normal;margin:
0em 0em 10px -20px; padding-bottom: 8px; padding-left: 30px;padding-top:
16px;} pre { font-size:small; background-color: #e5e5cc; padding: 5px;
font-family: Courier New; margin-top: 0px; border: 1px #f0f0e0 solid;
white-space: pre-wrap; white-space: -pre-wrap; word-wrap: break-word; }
table { border-collapse: collapse; border-spacing: 0px; font-family:
Verdana;} table th { border-right: 2px white solid; border-bottom: 2px
white solid; font-weight: bold; background-color: #cecf9c;} table td {
border-right: 2px white solid; border-bottom: 2px white solid;
background-color: #e5e5cc;}



Request Error


The server encountered an error processing the request.
Please see the service" target="_blank">http://api.saaspose.com/v1.0/pdf/help">service help page for
constructing valid requests to the service.




Hi Varun,

Have you uploaded your file to Saaspose storage? Saaspose can directly process files from Amazon S3, DropBox, GoogleDrive and GoogleCloud storages at the moment.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Yes I have uploaded a test pdf file with the name given, for signature I am
just doing a base64encoding of the key.

Hi Varun,

Your URI looks ok. Can you please share your code for further investigation? Sorry for the inconvenience.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hi Varun,

Please share your code as requested by our team. We'll be able to help you properly once you provide us the sample code. This will help us investigate the issue properly. We appreciate your cooperation in this regard.

Thanks & Regards
Shahzad Latif
Saaspose Support Team.