Disabeling Printing Options and Changing Scribd Viewer

360 views
Skip to first unread message

the_ill...@hotmail.com

unread,
Mar 20, 2013, 6:00:58 PM3/20/13
to scribd-platfo...@googlegroups.com

Hello All


I am using Scribd Viewer/Document Viewer for a few years. I upload my pdf files to www.domain/books/123.pdf  folder and use that books/123.pdf in my web application to open the pdf file in scribd viewer. [We have 700 pdfs]

Each time after uploading my document to my website and opening it with scribd viewer, i could go to scribd.com and change the properties of the converted file [ so no direct uploading to scribd]. There I could disable the printing option for the specific document. But since past few weeks the layout of the documents in scribd.com has changed. It no more gives me the option to turn off printing.

It does give Set Readers Permission but there is no option for turning off the printing option. I did search the net but this problems has been mentioned no where. I dont really know what is happening.

The code I use for the viewer is as follows.

<script type="text/javascript">
    var scribd_publisher_id = xxxxxxxxx'';
    var scribd_type = 2;
    var scribd_keep_original_link = 1;
    var scribd_ipaper_params = [];
    scribd_ipaper_params['width'] = 490;
    scribd_ipaper_params['height'] = 800;
    scribd_ipaper_params['public'] = false;
</script>
<script src="http://www.scribd.com/javascripts/auto.js"></script>

I did search on the net and I see that the code for scribd viewer has changed too.

<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'; [what url should be used here in my case because i do not have one document but 700]
  var pub_id = 'YOUR-SCRIBD-PUBLISHER-ID';
  var scribd_doc = scribd.Document.getDocFromUrl(url, pub_id);  [which url should be used here?]

  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>

My question are: Where and how can I turn off the printing option? Does it requires changing accounts settings [all document are private] or does it has something to do with the code for ipaper reader that i use?

Second many of the visitors complain that the scribd viewer cannot be viewed in mobile devices. I did found out that scribd uses html5 to ease that problem. How can I set up the html5 code and where can I find it?

Any help is appreciated.

Thanks in advance

Dirrix

Jared Friedman

unread,
Mar 20, 2013, 6:04:06 PM3/20/13
to scribd-platfo...@googlegroups.com
Hi Dirrix,

You want to use the HTML5 version of the embed, rather than the Flash one.  The HTML5 embed has no support for printing at all, so there is no need to turn it off.  And it will work on mobile.

See this page for instructions on embedding using the HTML5 version.  You can right-click on the embed to check and make sure you're getting the right one.

Best,
Jared


--
You received this message because you are subscribed to the Google Groups "Scribd Platform Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scribd-platform-dev...@googlegroups.com.
To post to this group, send email to scribd-platfo...@googlegroups.com.
Visit this group at http://groups.google.com/group/scribd-platform-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Message has been deleted

the_ill...@hotmail.com

unread,
Mar 20, 2013, 6:47:39 PM3/20/13
to scribd-platfo...@googlegroups.com, ja...@scribd.com
Hello Jared

Thanks for the rapid reply.

Believe me for hours I was trying to figure out how I can get to work but did not succeed in it.
I took the code below and I did replace the orignal code with the this one but it did not work.
in the var url there you refer to a specific document but I have 700 documents in the same folder so how can I use this option?

Could you please edit the code below such that I could use it as intended or guide me how to do this!

thanks

<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://domain.com/books/';
  var pub_id = 'MY-SCRIBD-PUBLISHER-ID';

  var scribd_doc = scribd.Document.getDocFromUrl(url, pub_id);

the_ill...@hotmail.com

unread,
Mar 21, 2013, 12:20:41 AM3/21/13
to scribd-platfo...@googlegroups.com, ja...@scribd.com, the_ill...@hotmail.com

All of the documents are being kept on a remote server and not uploaded to scribd. However they are being displayed in scribd viewer.
The Questions are:


1: Why is the option for disabling printing option from documents [uploaded from remote server] removed?

2: What is the construct when you want to use scribd viewer for more items and do not want to specify one url or one pdf file?

var url = 'http://domain.com/books/  [the url here changes because each books has a different name]';
  var pub_id = 'MY-SCRIBD-PUBLISHER-ID';
var scribd_doc = scribd.Document.getDocFromUrl(url, pub_id
);


thanks in advance


Reply all
Reply to author
Forward
0 new messages