本文介绍了以编程方式添加到PDF的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有大约180个从地理数据库生成的PDF文件.我想以编程方式根据需要在顶部,底部,左侧和右侧将链接添加为热点(无文本),以导航到相邻的页面文件.我还想在页面左下角的3x3网格上添加链接,以进行其他导航.网格已经存在于现有的PDF中,只是没有链接.总共可能会在每个页面中添加14个链接

I have about 180 PDF files that are generated from a geodatabase. I would like to programmatically add links as hot spots (no text) at the top, bottom, left and right as needed to navigate to the adjoining page files. I would also like to add links over a 3x3 grid in the lower left corner of the page for additional navigation. The grid is already in the existing PDF just no links. Total there will be a possible 14 links added to each page

我愿意接受有关如何进行此操作的建议.我正在使用Acrobat Pro XI,并且熟悉各种编程语言python,vb.net,C#...只是没有直接使用PDF文件的经验.

I am open to suggestions as to how to go about this. I am using Acrobat Pro XI, and I am familiar with various programing languages python, vb.net, C#... Just no experience working directly with PDF files.

推荐答案

在继续搜索并且没有找到任何其他有前途的开源解决方案之后,我选择了 Debenu快速PDF库.我使用的特定功能如下:

After continuing to search and not finding any other promising open source solutions I went with Debenu Quick PDF Library. The specific functions I used are are noted below:

  • AddLinkToFile
  • AddLinkToPage
  • Other annotations and hotspot links

这两个库函数每周将为我节省的时间值得单独花费.我相信我会在其他900多种PDF函数中找到其他用途

The time that the two library functions are going to save me weekly is worth the cost alone. I am sure I will find other use for the other 900+ PDF functions

这篇关于以编程方式添加到PDF的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 09:17