Updating Scribd Reader

Mar 24, 2013 at 3:44 AM
Hello

I am writing you regarding the iPaper integration into my website combined with a joomla application. We are using Scribd Ipaper for about 3 years. We used the very quick method of QuickSwitch [see the code below.

But since Scribd has changed a lot in recent years, I have the feeling that we do not use Scribd Ipaper to its full potentials [for example changing the flash based Ipaper viewer to the html5 version]. My case is as following.

Before we would upload a document to a directory in our hosting server and place the url of the document into this joomla application [documents/mydoc.pdf]. While clicking on the link the document would automatically in ipaper. The code below for scribd reader is placed within the joomla application].
<script type="text/javascript"> var scribd_publisher_id = 'pub-xxxxxxxxxxxxxxxx'; var scribd_type = 2; var scribd_keep_original_link = 1; var scribd_ipaper_params = []; scribd_ipaper_params['width'] = 390; scribd_ipaper_params['height'] = 600; scribd_ipaper_params['public'] = false; scribd_doc.addEventListener('iPaperReady', oniPaperReady); scribd_doc.addParam('jsapi_version', 2); </script> <script src="http://www.scribd.com/javascripts/auto.js"></script>

I did need to upload documents into scribd.com and I do not want that these docs are to be found or/and viewed on Scibd using public search (because of some legal issues). In fact I only used the scribd ipaper while the files were hosted in our server so no forcing in uploading them to scribd. In scribd the documents status were made private and the documents can only be red through our website.

However after the documents being converted by scribd and being viewed in Ipaper, I could log in to scribd.com and disable the printing option so it wont show up on the scribd reader. But since past few week the option for disabling printing option of documents in scribd has disappeared. It is only possible when you upload a document directly to scribd that u can disable priting but not for documents that are converted by scribd though hosted in remote server.
I did search a lot on google but all I could found was the following methods [html5] to embed a single document either from url or referring to the document in the remote server.

var scribd_doc = scribd.Document.getDoc(2659, 'key-6vhdaqehjkeob')
var scribd_doc = scribd.Document.getDocFromUrl(url, pub_id);

the code for embedding is as recommended by scribd but not how to publish/view them on the website from remote server without embedding.

<script type="text/javascript" src='http://www.scribd.com/javascripts/scribd_api.js'></script>
<div id='embedded_doc' ><a href='http://www.scribd.com'>Scribd</a></div> <script type="text/javascript"> var url = 'http://lib.store.yahoo.net/lib/paulgraham/onlisp.ps'; var pub_id = 'YOUR-SCRIBD-PUBLISHER-ID'; var scribd_doc = scribd.Document.getDocFromUrl(url, pub_id); var onDocReady = function(e){ scribd_doc.api.setPage(3); } scribd_doc.addEventListener('docReady', onDocReady); scribd_doc.addParam('jsapi_version', 2); scribd_doc.addParam('height', 600); scribd_doc.addParam('width', 400); scribd_doc.addParam('public', true); scribd_doc.write('embedded_doc'); </script> Since we have hundreds of documents, we cannot have hundreds of codes included into our application [we only added the documents/mydoc.pdf]. I am sure there is a way out but due to lack of documentation I could not find the solution.

I am sure there are a lot out there who must have had the same issues. I would be glad if somebody could help or guide me how to solve this issue.

Any Help is appreciated.

Thanks
RIDDIX