CloudConnect API
Link it or Embed
it in your application
Link
it from your website for FREE using CloudConnect
No
need for any installation or set up. Simply link your documents to our server and you
are on your way.
To use
CloudConnect point your
browser to following link
http://connect.ajaxdocumentviewer.com?key=<key>&document=<document_link>&viewerheight=<viewer_height>&viewerwidth=<viewer_width>
<key> is the key provided by
Accusoft Pegasus obtained by filling the form above.
<document_link> is the location of the document file. The
document must be
accessible from internet for this to work.
<viewer_height> is the display height of the viewer. You can
choose any +ve number for this.
<viewer_width> is the display width of the viewer. You can
choose any +ve number for this.
<cache>
is the parameter which will cache the file on our servers for quick viewing
for your users (Default: cache=no) (Optional)
(?)
<translation>
is the parameter which will allow users to real time translate a document
content to more than 40 languages (Read
more about translation)
<toolbarHeight> allows you to set the height of buttons on toolbar.
(Default Value=32). Can be any numeric number. (Optional)
<toolbarColor> allows you to set color of the toolbar. This should be an
Hexadecimal Color Code. (Optional)
What are Hexadecimal Color Codes?
Link Code
Example
(Without Caching, documents are never retained on our servers):
|
http://connect.ajaxdocumentviewer.com?key=03232898832&document=http://www.irs.gov/pub/irs-pdf/fw4.pdf&viewerheight=600&viewerwidth=800&
toolbarHeight=24&toolbarColor=FFTTGG
|
The above link
code would look like this
(Click the link below to see the above link code in action)
http://connect.ajaxdocumentviewer.com/?key=03232898832&document=http://www.irs.gov/pub/irs-pdf/fw4.pdf&viewerheight=500&viewerwidth=800
Example
(Translation option turned on and caching off):
|
http://connect.ajaxdocumentviewer.com?key=03232898832&document=http://www.irs.gov/pub/irs-pdf/fw4.pdf&viewerheight=600&viewerwidth=800&cache=no&translation=yes
|
The above link
code would look like this
(Click the link below to see the above link code in action)
http://connect.ajaxdocumentviewer.com/?key=03232898832&document=http://www.irs.gov/pub/irs-pdf/fw4.pdf&viewerheight=500&viewerwidth=700&translation=yes
Example
(With caching, documents are cached on our servers):
|
http://connect.ajaxdocumentviewer.com?key=03232898832&document=http://www.irs.gov/pub/irs-pdf/fw4.pdf&viewerheight=600&viewerwidth=800&cache=yes |
The above link
code would look like this
(Click the link below to see the above link code in action)
http://connect.ajaxdocumentviewer.com/?key=03232898832&document=http://labs.google.com/papers/gfs-sosp2003.pdf&viewerheight=600&viewerwidth=800&cache=yes
Get the Key for free
Personalize your experience and add your own brand while still
cloud connecting to our servers.
Purchase the CloudConnect Commercial Edition license..
Embed
it within your website for free using CloudConnect
Simply copy and paste the following code in your
application and replace <document link> with the location of the document file.
The document must be accessible from internet for this to work.
<iframe name="ajaxdocumentviewer"
src="http://connect.ajaxdocumentviewer.com?key=<key>&document=<document_link>&viewerheight=<viewer_height>&viewerwidth=<viewer_width>" border="0"
height="<viewer_height>"
width="<viewer_width>" scrolling="no"
align="left" frameborder="0" marginwidth="1"
marginheight="1">Your browser does not support inline frames or is currently configured
not to
display inline frames.</iframe>
<key> is the key provided
by Accusoft Pegasus obtained by filling the form above.
<document_link> is the location of the document file. The document must be
accessible from internet for this to work.
<viewer_height> is the display height of the viewer. You can choose any +ve
number for this.
<viewer_width> is the display width of the viewer. You can choose any +ve number
for this.
<cache>beta
is the parameter which will cache the file on our servers for quick viewing
for your users (Default: cache=no)
(?)
<translation>beta
is the parameter which will allow users to real-time translate a document
content to more than 40 languages (Read
more about translation)
Embed
Code :
|
<iframe name="ajaxdocumentviewer" src="http://connect.ajaxdocumentviewer.com?key=<key>&document=<document_link>&viewerheight=<viewer_height>&viewerwidth=<viewer_width>" border="0" height="<viewer_height>" width="<viewer_width>" scrolling="no" align="left" frameborder="0" marginwidth="1" marginheight="1">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
|
Example (Without
Caching, documents are not retained on our servers):
|
<iframe name="ajaxdocumentviewer" src="http://connect.ajaxdocumentviewer.com?key=03232898832&document=http://www.irs.gov/pub/irs-pdf/fw4.pdf&viewerheight=600&viewerwidth=700" border="0" height="600" width="500" scrolling="no" align="left" frameborder="0" marginwidth="1" marginheight="1">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
|
Example (With
Caching, documents are not retained on our servers):
|
<iframe name="ajaxdocumentviewer" src="http://connect.ajaxdocumentviewer.com?key=03232898832&document=http://www.irs.gov/pub/irs-pdf/fw4.pdf&viewerheight=600&viewerwidth=700&cache=yes" border="0" height="600" width="500" scrolling="no" align="left" frameborder="0" marginwidth="1" marginheight="1">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
|
Example (With
translation option turned on and caching off):
|
<iframe name="ajaxdocumentviewer" src="http://connect.ajaxdocumentviewer.com?key=03232898832&document=http://www.irs.gov/pub/irs-pdf/fw4.pdf&viewerheight=600&viewerwidth=800&cache=no&translation=yes" border="0" height="600" width="800" scrolling="no" align="left" frameborder="0" marginwidth="1" marginheight="1">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
|
Get the Key for free
Personalize your experience and add your own brand while still
cloud connecting to our servers.
Purchase the CloudConnect Commercial Edition license.
Additional Extended API (Requires CloudConnect Commercial Edition License)
<startPage> is the
first page of document to load in viewer (Values:
Numeric) (Default: 1)
<saveButton> is the ability to switch save document
button on and off (Values: Yes/No) (Default: Yes)
<printButton> is the ability to switch print
document button on and off (Values: Yes/No)
(Default: Yes)
<copytextButton> is the ability to switch copying of
text to Clipboard on and off (Values: Yes/No)
(Default: Yes) (Default Copying of Text is
allowed)<pdfPassword> is a parameter that can be
passed for secured PDF documents (Value: pdf
password) (Example: pdfPassword=hjsdh6d)
<logoimage> is the logo of your company that will
appear when viewer is loading (Default:
AJAXDocumentViewer Logo)
<pagestoshow> allows you to display only certain
number of pages of the total number of pages in the
document. (Default: blank. Not needed. All pages in
document are shown) Example If pagestoshow=5 is
passed for a 30 page document, only first 5 pages of
document will be displayed.
<quality> is the fidelity of the document
being loaded. You can control the quality and
resolution of document loaded in viewer. (Value:
high/medium/low) (Default:
medium). A medium quality is recommended for
optimized load times and better resolution. A higher
quality would mean more rendering time but higher
resolution. Quality value if not passed defaults to
medium.
<ssl> is the ability to load the viewer in secure
SSL encryption mode. Document will be downloaded
from location in secure mode also and all
communication will be in secure mode. (Values:
Yes/No) (Default: No)
Note- For SSL encryption to work
properly, <document_link> and <logoimage> should be
available under secure links also otherwise users
will see security pop-ups.
Link Code (Requires CloudConnect Commercial Edition License)
|
http://connect.ajaxdocumentviewer.com?key=<personalkey>&document=<document_link>&viewerheight=<viewer_height>&viewerwidth=<viewer_width>
&startPage=1&saveButton=No&printButton=No&logoimage=http://www.yourcompany.com/logo.gif&quality=medium |
Link Code Examples
Not using SSL
|
http://connect.ajaxdocumentviewer.com?key=testkey&document=http://www.adeptol.com/test.pdf&viewerheight=500
&viewerwidth=600&startPage=1&saveButton=No&printButton=No&logoimage=http://www.adeptol.com/logo.gif&quality=high |
Using SSL
|
https://connect.ajaxdocumentviewer.com?key=testkey&document=https://www.ajaxdocumentviewer.com/test.pdf&viewerheight=500
&viewerwidth=600&startPage=1&saveButton=No&printButton=No&logoimage=https://www.ajaxdocumentviewer.com/logo.gif&quality=medium&ssl=yes |
Embed Code
|
<iframe name="ajaxdocumentviewer" src="http://www.ajaxdocumentviewer.com/embed.asp?key=<key>&document=<document_link>&viewerheight=<viewer_height>&viewerwidth=<viewer_width>&startPage=1
&saveButton=No&printButton=No&logoimage=http://www.yourcompany.com/logo.gif&quality=medium" border="0" height="<viewer_height>" width="<viewer_width"
scrolling="no" align="left" frameborder="0"
marginwidth="1" marginheight="1">Your browser does
not support inline frames or is currently configured
not to display inline frames.</iframe> |
Embed Code Examples
Not Using SSL
|
<iframe name="ajaxdocumentviewer" src="http://connect.ajaxdocumentviewer.com?key=testkey&
document=http://www.adeptol.com/test.pdf&viewerheight=500&viewerwidth=600&startPage=1&saveButton=No&
printButton=No&logoimage=http://www.adeptol.com/logo.gif&quality=low"
border="0" height="500" width="600" scrolling="no"
align="left"
frameborder="0" marginwidth="1" marginheight="1">Your
browser does not support inline frames or is
currently configured not to display inline frames.</iframe> |
Using SSL
|
<iframe name="ajaxdocumentviewer" src="https://connect.ajaxdocumentviewer.com?key=testkey&document=https://www.ajaxdocumentviewer.com/test.pdf&viewerheight=500&viewerwidth=600
&startPage=1&saveButton=No&printButton=No&logoimage=https://www.ajaxdocumentviewer.com/logo.gif&quality=medium&ssl=yes"
border="0" height="500" width="600" scrolling="no"
align="left" frameborder="0" marginwidth="1"
marginheight="1">Your browser does not support
inline frames or is currently configured not to
display inline frames.</iframe> |
Passing Encrypted Variables
for extended security (Requires CloudConnect Commercial Edition License)
<encrypt> is the
parameter which defines if you are using encryption.
encrypt should be set to 1 if encryption of
variables is used (Values:
Numeric) (Default: 0)
Adeptol
The CloudConnect Commercial Edition license allows you to pass
variables in encrypted form so that your application
users cannot get to actual document location. The
process is a done 2 step - Encryption & View
The encryption step takes all the CloudConnect variables
like SSL, document, viewerheight/viewerwidth,logoimage
etc and returns an encrypted string. This encrypted
string is then passed to the viewer along with the encrypt
variable set to 1 in step 2, to display the document
from your server.
Steps
1) Encryption
From within your code make a call to
http://connect.ajaxdocumentviewer.com/encrypt/
and pass variables to get encrypted text
|
http://connect.ajaxdocumentviewer.com/encrypt/?key=xxxxxxx&document=http://www.irs.gov/pub/irs-pdf/fw4.pdf&viewerheight=500&viewerwidth=900&translation=yes&printButton=Yes |
where
key is your cloudconnect license <key>
document is location of document on your server
viewerheight & viewerwidth
are height and width
for viewer
All other paramters like SSL,printButton, saveButton,
translation, etc., can be passed for encryption.
The output from this
call will be an encrypted string which should be passed
to step 2.
2)
View
Pass the encrypted string to the viewer with the encryptt=1
parameter
|
http://connect.ajaxdocumentviewer.com/?key=xxxxxx&encrypt=1&encrypttext=QS8gcNoNl6U/9qgVhxzIKpU59cjyN4ffAOAc77X9EES5OO
yV4ArmMXlMWvJLg5GzEqkrd3AHtya31yb3XZ9Dg9qivbf+o15/pfchlSytEJHDUV6Eep6Wi+7PRLTegftxYfKHcBrlhbGnnq3NzB
vv47DiwRp92ecmF8HtP3ATaAPouPhI6pugS+ACGrrktVP2dnhvSKNfj4WtTk3sTArHGtRLHCtnWhj7LY04evFmU5KDRXi5obhrOd
skVqHdqXiUg2MBbSQDGZHk2utbUIrn6hh7TKyZzc6q1zMA8LKllKE= |
where
key is your cloudconnect license <key>
encrypt=1 means you are passing encrypted variables
encrypttext is the encrypted string you received
from step 1 above.
Note- If you are using SSL, you
should make all Step 1, 2 calls using https. So your
calls would be like
https://connect.ajaxdocumentviewer.com/encrypt/?...
and
https://connect.ajaxdocumentviewer.com/...