Adobe Acrobat Professional和Adobe Reader都是Adobe公司的产品。前者用来编辑制作PDF文档,后者只能用来阅读PDF。令人郁闷的是Adobe Reader中虽然有书签这一项显示,却没有添加书签的功能。解决方法一是使用Adobe Acrobat Professional,另一个方法如下:

在http://www.pdfhacks.com/bookmark_page/bookmark_page.js-1.0.zip 上面下载一个javascript脚本文件,把这个文件放到Adobe/Acrobat 7.0/Reader/Javascripts目录下。如果忘记了Adobe的安装目录,可以运行Adobe Reader,然后使用process explorer查看进程对应的可执行文件路径。文件放好后,重新运行Adobe Reader,就可以在“视图”菜单项的下面发现四个新增的条项。这四个新增的条项就是那个javascript文件的效果,它们能够实现书签的功能。这个新增的书签功能自然是不能和Adobe Acrobat Professional中的书签功能相比,但对于阅读文档也足够了。

下面是那个javascript文件的内容:

// bookmark_page.js, ver. 1.0// visit: www.pdfhacks.com/bookmark_page/// use this delimiter for serializing our arrayvar bp_delim= '%#%#';function SaveData( data ) {  // data is an array of arrays that needs  // to be serialized and stored into a persistent  // global string  var ds= '';  for( ii= 0; ii< data.length; ++ii ) {    for( jj= 0; jj< 3; ++jj ) {      if( ii!= 0 || jj!= 0 )        ds+= bp_delim;      ds+= data[ii][jj];    }  }  global.pdf_hacks_js_bookmarks= ds;  global.setPersistent( "pdf_hacks_js_bookmarks", true );}function GetData() {  // reverse of SaveData; return an array of arrays  if( global.pdf_hacks_js_bookmarks== null ) {    return new Array(0);  }  var flat= global.pdf_hacks_js_bookmarks.split( bp_delim );  var data= new Array();  for( ii= 0; ii< flat.length; ) {    var record= new Array();    for( jj= 0; jj< 3 && ii< flat.length; ++ii, ++jj ) {      record.push( flat[ii] );    }    if( record.length== 3 ) {      data.push( record );    }  }  return data;}function AddBookmark() {  // query the user for a name, and then combine it with  // the current PDF page to create a record; store this record  var label=     app.response( "Bookmark Name:",                  "Bookmark Name",                  "",                  false );  if( label!= null ) {    var record= new Array(3);    record[0]= label;    record[1]= this.path;    record[2]= this.pageNum;    data= GetData();    data.push( record );    SaveData( data );  }}function ShowBookmarks() {  // show a pop-up menu; this seems to only work when  // a PDF is alreay in the viewer;  var data= GetData();  var items= '';  for( ii= 0; ii< data.length; ++ii ) {    if( ii!= 0 )      items+= ', ';    items+= '"'+ ii+ ': '+ data[ii][0]+ '"';  }  // assemble the command and the execute it with eval()  var command= 'app.popUpMenu( '+ items+ ' );';  var selection= eval( command );  if( selection== null ) {    return; // exit  }  // the user made a selection; parse out its index and use it  // to access the bookmark record  var index= 0;  // toString() converts the String object to a string literal  // eval() converts the string literal to a number  index= eval( selection.substring( 0, selection.indexOf(':') ).toString() );  if( index< data.length ) {    try {      // the document must be 'disclosed' for us to have any access      // to its properties, so we use these FirstPage NextPage calls      //      app.openDoc( data[index][1] );      app.execMenuItem( "FirstPage" );      for( ii= 0; ii< data[index][2]; ++ii ) {        app.execMenuItem( "NextPage" );      }    }    catch( ee ) {      var response=         app.alert("Error trying to open the requested document./nShould I remove this bookmark?", 2, 2);      if( response== 4 && index< data.length ) {        data.splice( index, 1 );        SaveData( data );      }    }  }}function DropBookmark() {  // modelled after ShowBookmarks()  var data= GetData();  var items= '';  for( ii= 0; ii< data.length; ++ii ) {    if( ii!= 0 )      items+= ', ';    items+= '"'+ ii+ ': '+ data[ii][0]+ '"';  }  var command= 'app.popUpMenu( '+ items+ ' );';  var selection= eval( command );  if( selection== null ) {    return; // exit  }  var index= 0;  index= eval( selection.substring( 0, selection.indexOf(':') ).toString() );  if( index< data.length ) {    data.splice( index, 1 );    SaveData( data );  }}function ClearBookmarks() {  if( app.alert("Are you sure you want to erase all bookmarks?", 2, 2 )== 4 ) {    SaveData( new Array(0) );  }}app.addMenuItem( {cName: "-",              // menu dividercParent: "View",         // append to the View menucExec: "void(0);" } );app.addMenuItem( {cName: "Bookmark This Page &5",cParent: "View",cExec: "AddBookmark();",cEnable: "event.rc= (event.target != null);" } );app.addMenuItem( {cName: "Go To Bookmark &6",cParent: "View",cExec: "ShowBookmarks();",cEnable: "event.rc= (event.target != null);" } );app.addMenuItem( {cName: "Remove a Bookmark",cParent: "View",cExec: "DropBookmark();",cEnable: "event.rc= (event.target != null);" } );app.addMenuItem( {cName: "Clear Bookmarks",cParent: "View",cExec: "ClearBookmarks();",cEnable: "event.rc= true;" } );

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

给Adobe Reader添加书签功能相关推荐

  1. 为Adobe Reader添加书签功能

    一直用Adobe Reader看pdf文档,但是发现它竟然没有书签功能.导致每次打开文档后都要从第一页往后翻....于是google了一下,发现了两种解决方法. 1. Reader本身提供了一个记忆上 ...

  2. Adobe Reader添加书签

    Adobe Reader还是很强大的,但是本人比较懒,一个PDF文档看了一点之后,可能好几天不再打开,再打开的时候又忘了上次看到哪,还得从头找,这是Adobe Reader不太方便的地方,找了一圈没找 ...

  3. Adobe reader 的书签功能

    如果您想要的书签功能是每次用adobe reader打开pdf文件都会回到上次离开的界面,那么请您跟随如下操作: 进入adobe reader , 键盘 ctrl+K 注意:此时的鼠标应该处于选择模式 ...

  4. 用Adobe Reader的“朗读”功能实现“少林修女GPS”语音提示

    Adobe reader (以前叫Adobe Acrobat Reader, 大概是从8.0-9.0版本的时候为了跟收费的Adobe Acrobat区分,把中间的Acrobat去掉,成为现在沿用的名字 ...

  5. 在Adobe Reader里添加书签功能

    转载自:http://hi.baidu.com/%C4%CE%CF%A3nice/blog/item/d24c1202d20dc0e509fa934e.html PDF文件的官方阅读程序"A ...

  6. 【电子书制作软件】云展网教程 | 在杂志页上添加书签功能

    云展网有添加书签这一效果哦,在书的边缘添加一个书签按钮,点击书签按钮就能快速跳至书签设置的页面. 首先我们来认识下书签栏下的快捷按钮: 添加任意书签.新添加标签则使用该按钮. 编辑已选标签. 编辑好的 ...

  7. adobe reader xi补丁_Adobe Reader XI

    Adobe Reader XI是Adobe公司开发的一款完美的PDF文档阅读软件.Adobe Reader XI软件操作很简单,我们在电脑上安装后就可以打开PDF文件进行查看.不仅如此Adobe Re ...

  8. Adobe Reader 快捷键

    本文转载自:http://www.cnblogs.com/wangchenxicool/archive/2011/08/30/2159937.html 1,使用快捷键  在编辑-首选项-一般,选中&q ...

  9. adobe reader xi补丁_Adobe Reader X

    Acrobat X是adobe旗下的pdf阅读编辑工具,这款软件全面支持pdf的创建.阅读.编辑等多种功能,推荐有需要的用户下载使用. Acrobat X主要功能: -新的Actions控制栏支持自动 ...

最新文章

  1. vc 添加打开文件对话框并读取文件
  2. WPF error: does not contain a static 'Main' method suitable for an entry point
  3. 基于Levenberg-Marquardt训练算法的BP网络Python实现
  4. python epoll 并发_Python语言之python并发原理(阻塞、非阻塞、epoll)
  5. select ...as_一起使用.select .map和.reduce方法可充分利用Ruby
  6. springboot学习笔记-01-springboot-helloworld的编写以及原理初步了解(自动装配)
  7. phpstudy mysql 版本_phpStudy中升级MySQL版本到5.7.17的方法步骤
  8. Visual studio 2017 未能正确加载“Microsoft.VisualStudio.Editor.Implementation.EditorPackage”包...
  9. MOSS 2010:Visual Studio 2010开发体验(23)——编写自定义的BCS连接器
  10. “熊猫烧香”病毒的原理
  11. android6.0华为刷机包,华为畅享6官方rom刷机包_华为畅享6原版系统包_升级包
  12. 基于SK6812编码LED实现炫光功能(PWM+DMA功能MCU兼容)
  13. 华为网络设备交换机路由器查看MAC地址表项命令方法
  14. 计算机内存条价格,最新内存条天梯图2020 内存条全面选购指南
  15. Fabric2.3分布式部署(fabric-ca)
  16. c语言other用法,初中英语other的用法介绍
  17. leetcode#66. Plus One
  18. ACL 2022 | DialogVED:用于对话回复生成的预训练隐变量编码-解码模型
  19. Web前端:2022年十大React表库
  20. C++String fing函数

热门文章

  1. 双十一屡“爆表” 经受考验的不再是电商是AI技术
  2. 如何设置allegro的快捷键
  3. Oracle数据库:cx_Oracle.LOB object at 0x000001E7071C7870怎么解决
  4. Oracle XE介绍
  5. linux系统字符设备文件类型,Linux文件类型
  6. java民宿运营管理网站计算机毕业设计MyBatis+系统+LW文档+源码+调试部署
  7. java 正则表达式 查找数字
  8. Volite学习文章
  9. java ee2019 11 5关于多态 抽象类 接口
  10. 推荐10款非常优秀的HTML5开发工具