Escolar Documentos
Profissional Documentos
Cultura Documentos
in
R&D
Documentation on iPaper
Index
1. Upload your documents to Scribd..........................................................................5
2. Copy the document's embed code.........................................................................5
3. Paste the document's embed code in the HTML code of your web page
.............................................................................................................................. .....5
1. Copy the javascript to WebPage.............................................................................6
Copy and paste the Javascript given by Scribd to the bottom of the webpage, right
above the '</body>' tag. It should appear on all the pages of website that
QuickSwitch to work according to options on Scribd and give appropriate publisher
id, if Scribd account is activated................................................................................6
Eg. ....................................................................................................................... ......6
<script type="text/javascript">...............................................................................6
var scribd_publisher_id = 'pub-12866704169023852814';....................................6
var scribd_type = 2;...................................................................................... .........6
var scribd_keep_original_link = 0;..........................................................................6
var scribd_ipaper_params = [];..............................................................................6
scribd_ipaper_params['public'] = true;..................................................................6
</script>.................................................................................................................. ..6
<script src="http://www.scribd.com/javascripts/auto.js"></script>.........................6
2. Run the Web Page................................................................................. .................6
Can enjoy an enhanced document viewing experience.............................................6
1.Download the class library .....................................................................................7
2.Hard Code the following code:................................................................................7
b) After you've set up the Scribd.Net.Service properties, you can log in:................7
// Called after setting up the Scribd.Net.Service properties.......................................8
void LoginUser()........................................................................................... ..............8
SmartDoc.in
{............................................................................................................................ .....8
// Subscribe to events...........................................................................................8
Scribd.Net.User.LoggedIn +=new
EventHandler<UserEventArgs>(User_LoggedIn);......................................................8
............................................................................................................................. .....8
// Sign into the service..........................................................................................8
bool signInResult = Scrib.Net.User.Login ("MyUsername", "MyPassword");..........8
}............................................................................................................................ .....8
............................................................................................................................. .....8
// This method is called on successful login...............................................................8
static void User_LoggedIn(object sender, UserEventArgs e)......................................8
{............................................................................................................................ .....8
Console.WriteLine("Hello, {0}!", (sender as Scribd.Net.User).Name);..................8
}............................................................................................................................ .....8
1. Introduction
iPaper is a rich document format built for the web. Built with Adobe
Flash, iPaper will display documents in the same way regardless of whether
you're using Windows, MacOS, or Linux. Readers no longer have to download
files or need extra software to view their documents.
Features of iPaper
2) Easy to Integrate
5) Enhanced Security
iPaper is the best way to view documents on the web, can add iPaper
documents to your web pages quickly and easily. There are several methods
you can use to embed iPaper in website:
Sign up for a free Scribd account. Visit upload page and select one or more
documents to upload and convert to iPaper. Give description and tags to
documents so others can easily find them.
3. Paste the document's embed code in the HTML code of your web
page
Once you've configured iPaper and copied the embed code, paste it in the area
of your web page .Save and republish the same webpage.
2.2 QuickSwitch
SmartDoc.in
QuickSwitch lets you integrate iPaper on your site in minutes. A few lines of
javascript is all it takes to convert all your document links to iPaper links.
Copy and paste the Javascript given by Scribd to the bottom of the webpage,
right above the '</body>' tag. It should appear on all the pages of website
that QuickSwitch to work according to options on Scribd and give appropriate
publisher id, if Scribd account is activated.
Eg.
<script type="text/javascript">
var scribd_publisher_id = 'pub-12866704169023852814';
var scribd_type = 2;
var scribd_keep_original_link = 0;
var scribd_ipaper_params = [];
scribd_ipaper_params['public'] = true;
</script>
<script src="http://www.scribd.com/javascripts/auto.js"></script>
The Scribd API is a REST-based API with methods for uploading, converting,
editing, deleting, and searching documents. Using the API, one can use Scribd
as a back-end for an application that needs to process documents.
Download the class library. Paste in bin folder and give reference.
http://www.codeplex.com/scribdnet
// Set up keys
Scribd.Net.Service.APIKey = "MyAPIKey";
Scribd.Net.Service.SecretKey = "MySecretKey";
Scribd.Net.Service.EnforceSigning = true;
Scribd.Net.Service.PublisherID = "MyPublisherId"; // Optional
Scribd.Net.Service.WebProxy = myWebProxy;
b) After you've set up the Scribd.Net.Service properties, you can log in:
SmartDoc.in
Scribd.Net namespace.
Scribd.Net.Service class.
Scribd.Net.Document class.
Scribd.Net.User class.
Scribd.Net.Search class.
Scribd.Net.Document.Uploaded +=new
EventHandler<DocumentEventArgs>(Document_Uploaded);
4. Reference
SmartDoc.in
Web Links:
http://www.scribd.com/publisher/api
http://www.codeplex.com/scribdnet