以编程方式合并PDF,同时保留“合并文件…".书签结构? [英] Merging PDFs programatically while maintaining the "Combine files…" bookmark structure?

查看:410
本文介绍了以编程方式合并PDF,同时保留“合并文件…".书签结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将许多PDF文件合并为一个文件.我目前有结合pdf文件的代码,但是它不能像在Acrobat中合并支持的文件"那样保留书签结构.
换句话说,假设我有三个名为"A.pdf","B.pdf"和"C.pdf"的文件,每个文件包含两个名为"Bkmrk 1"和"Bkmrk 2"的书签.我想以编程方式将这三个文件合并为一个具有9个书签的单个文件,它们看起来像下面的结构:

I have to merge a set of many PDF files into a single file. I currently have code that will combine pdf files, but it does not keep the bookmark structure the same way that "Combine supported files in Acrobat" does.
In other words, say I have three files called "A.pdf", "B.pdf", and "C.pdf", and each file contains two bookmarks called "Bkmrk 1" and "Bkmrk 2". I want to programatically combine these three files into a single file that has 9 bookmarks that look like the structure below:

A
    Bkmrk 1
    Bkmrk 2
B
    Bkmrk 1
    Bkmrk 2
C
    Bkmrk 1
    Bkmrk 2



我使用pdfsharp插入书签,但是没有选择来获取现有PDF文件的书签(大纲),也希望获得相同的书签层次结构以在新合并的PDF上创建书签结构.

任何想法或建议将不胜感激!



I used pdfsharp to insert bookmark but there is no option to get bookmark (outline) of existing PDF files also want to get same bookmark heirarchy to create the bookmark structure on new merged PDF.

Any idea or suggestions would be greatly appreciated!

推荐答案

奇怪的是,免费库和付费库之间的区别是对诸如您想要的东西的支持.为什么还要有人为图书馆付费?
Odds are decent that the difference between the free libraries and the ones that cost money is support for things like what you want. Why else would some people pay for libraries ?


这篇关于以编程方式合并PDF,同时保留“合并文件…".书签结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆