Documentation On Ipaper

  • December 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Documentation On Ipaper as PDF for free.

More details

  • Words: 1,162
  • Pages: 11
SmartDoc.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 '' 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 pdfcoke_publisher_id = 'pub-12866704169023852814';....................................6 var pdfcoke_type = 2;...................................................................................... .........6 var pdfcoke_keep_original_link = 0;..........................................................................6 var pdfcoke_ipaper_params = [];..............................................................................6 pdfcoke_ipaper_params['public'] = true;..................................................................6 .................................................................................................................. ..6 <script src="http://www.pdfcoke.com/javascripts/auto.js">.........................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 1.1Introduction and Features

SmartDoc.in 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 1) Simplicity, Speed, and Portability iPaper is designed to be fast, light, and easy to use. iPaper fully integrates into your website and offers a fluid browsing experience, free from downloads and other interruptions that distract viewers away from your site. 2) Easy to Integrate iPaper is easy to integrate from no programming experience to highlyexperienced website/application developers. 3) Increase Your Traffic iPaper brings premium content to your website and optional search engine optimization (SEO) features increase your documents' visibility to major search engines like Google and Yahoo.

4) Monetize Your Documents iPaper integrates text-based Google AdSense ads into your documents in a way that is unobtrusive and attractive. The ads in your documents are targeted based on the content of your documents.

5) Enhanced Security iPaper documents are streamed from a secure server therefore there are no files to download, upload, or email. As iPaper documents are embedded in your webpages, they gracefully inherit your website's existing security system. 6) Include Your Documents in Scribd's Library One can choose to include iPaper documents in Scribd's library which can expose contents to nearly 20 million monthly visitors

SmartDoc.in 1.2

Popular Document formats Supported formats include: • • • • • • • • • • •

Adobe PDF (.pdf) Adobe PostScript (.ps) Microsoft Word (.doc, .docx) Microsoft PowerPoint (.ppt, .pps, .pptx) Microsoft Excel (.xls, xlsx) OpenOffice Text Document (.odt, .sxw) OpenOffice Presentation Document (.odp, .sxi) OpenOffice Spreadsheet (.ods, .sxc) All OpenDocument formats Plain text (.txt) Rich text format (.rtf)

2. Embedding Document into Ipaper

SmartDoc.in 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: 2.1 Simple Embed Simple Embed if you have only a handful of documents. Following are the steps for embedding Simple Embed Method: 1. Upload your documents to Scribd 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. 2. Copy the document's embed code If Document is converted to iPaper, then it is ready to embed it. From the document's page on Scribd, click the Embed tab above the iPaper window and copy the embed code. To customize embedded document's size and default view mode, click Advanced. 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. Following are the steps for embedding QuickSwitch: 1. Copy the javascript to WebPage. Copy and paste the Javascript given by Scribd to the bottom of the webpage, right above the '' 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 pdfcoke_publisher_id = 'pub-12866704169023852814'; var pdfcoke_type = 2; var pdfcoke_keep_original_link = 0; var pdfcoke_ipaper_params = []; pdfcoke_ipaper_params['public'] = true; <script src="http://www.pdfcoke.com/javascripts/auto.js"> 2. Run the Web Page Can enjoy an enhanced document viewing experience

2.3 Custom Implementation using Scribd API

SmartDoc.in 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. Following are the steps for embedding Scribd API in C#.Net 1. Download the class library Download the class library. Paste in bin folder and give reference. http://www.codeplex.com/pdfcokenet

2. Hard Code the following code: 

To have started with the following details must be available:



Your Scribd API Key



Your Scribd Secret Key



Your Scribd Publisher Id



A Scribd Developer Account (Username and password)

a) Set up your environment using the Scribd.Net.Service static class: // Set up keys Scribd.Net.Service.APIKey = "MyAPIKey"; Scribd.Net.Service.SecretKey = "MySecretKey"; Scribd.Net.Service.EnforceSigning = true; Scribd.Net.Service.PublisherID = "MyPublisherId"; // Optional // Set up web proxy (if needed) Scribd.Net.Service.WebProxy = myWebProxy;

b) After you've set up the Scribd.Net.Service properties, you can log in:

SmartDoc.in // Called after setting up the Scribd.Net.Service properties. void LoginUser() { // Subscribe to events Scribd.Net.User.LoggedIn +=new EventHandler<UserEventArgs>(User_LoggedIn); // Sign into the service bool signInResult = Scrib.Net.User.Login ("MyUsername", "MyPassword"); } // This method is called on successful login. static void User_LoggedIn(object sender, UserEventArgs e) { Console.WriteLine("Hello, {0}!", (sender as Scribd.Net.User).Name); } c) The client library consists of several top-level objects: 

Scribd.Net namespace.



Scribd.Net.Service class.



Scribd.Net.Document class.



Scribd.Net.User class.



Scribd.Net.Search class.

For eg :To upload a file the following code can be written in : // Set up upload notification

SmartDoc.in Scribd.Net.Document.Uploaded +=new EventHandler(Document_Uploaded); // Send our PDF document to Scribd. Scribd.Net.Document settings = Scribd.Net.Document.Upload(@"C:\world.pdf"); // Tell me what the new document id is... Console.WriteLine("Document Id is {0}", settings.DocumentId.ToString());

3. Integration with Comparison

SmartDoc.in

The pros and cons of each method:

Technical Ability Required Time Investment Customizability Ability to Handle Many Documents

4. Reference

Embed Low Low High

QuickSwitch Scribd API Low High Low High Medium High

Low

Medium

High

SmartDoc.in Web Links:

http://www.pdfcoke.com/publisher/api http://www.codeplex.com/pdfcokenet

Related Documents

Documentation On Ipaper
November 2019 5
Ipaper
November 2019 9
Ipaper
May 2020 8
Ipaper
May 2020 4
Ipaper
April 2020 11
Ipaper
November 2019 15