我已将 scribd 文档查看器集成到我的网站,但 setPage 功能不起作用
您能帮我只查看文档中的前两页吗?请查看以下内容
url 并帮助我找到解决方案。
<div id='embedded_doc' ><a href='http://www.scribd.com'>Scribd</a></div>
<script type="text/javascript">
var url = 'http://nskfix.com/dev/waleed/webupload/upload/2011_Dam-Sluice-Gate-Walkway-Slabs.pdf';
var pub_id = 'pub-07535389025944280985849137';
var scribd_doc = scribd.Document.getDocFromUrl(url, pub_id);
var onDocReady = function(e){
scribd_doc.api.setPage(1);
}
scribd_doc.addEventListener('docReady', onDocReady);
/*scribd_doc.addParam('jsapi_version', 2);*/
scribd_doc.addParam('height', 600);
scribd_doc.addParam('width', 760);
/*scribd_doc.addParam('public', true);*/
scribd_doc.addParam( 'auto_size', true );
scribd_doc.addParam('hide_disabled_buttons', true);
scribd_doc.addParam('disable_resume_reading', true);
scribd_doc.addParam( 'jsapi_version', 2 );
scribd_doc.addParam( 'allow_share', false );
scribd_doc.write('embedded_doc');
</script>