pdftk - 一个不错的pdf文档合并工具

简介:
 没有直观的操作界面,需要在命令行进行操作( 将pdftk.exe放在要处理的pdf文档所在的目录下 ):

    开始->运行->cmd->(用cd命令切换到pdf文档和pdftk.exe所在的目录下)

    合并sourse1.pdf和sourse2.pdf文档到target.pdf:
    >pdftk sourse1.pdf sourse2.pdf cat output target.pdf
    或者:
    >pdftk A=sourse1.pdf B=sourse2.pdf cat A B output target.pdf

    将目录中所有的pdf合并到target.pdf(用通配符*):
    >pdftk *.pdf cat output target.pdf


其他功能:
(1) Decrypt a PDF:
    >pdftk secured.pdf input_pw foopass output unsecured.pdf

(2) Encrypt a PDF using 128-bit strength (the default),  with-hold all permissions (the default)
    >pdftk 1.pdf output 1.128.pdf owner_pw foopass

(3) Same as above, except password 'baz' must also be used to open output PDF
    >pdftk 1.pdf output 1.128.pdf owner_pw foo user_pw baz

(4) Same as above, except printing is allowed (once the PDF is open)
    >pdftk 1.pdf output 1.128.pdf owner_pw  foo  user_pw  baz allow printing

(5) Remove 'page 13' from in1.pdf to create out1.pdf
    >pdftk in.pdf cat 1-12 14-end output out1.pdf
    or:
    >pdftk A=in1.pdf cat A1-12 A14-end output out1.pdf

(6) Apply 40-bit encryption to output, revoking all permis-sions(the default). Set the owner PW to 'foopass'.
    >pdftk   1.pdf   2.pdf  cat  output  3.pdf  encrypt_40bit owner_pw foopass

(7) Join two files, one of which requires the password 'foopass'. The output is not encrypted.
    >pdftk A=secured.pdf 2.pdf input_pw A=foopass cat  output 3.pdf

(8) Uncompress  PDF page streams for editing the PDF in a text editor (e.g., vim, emacs)
    >pdftk doc.pdf output doc.unc.pdf uncompress

(9) Repair a PDF's corrupted XREF table and stream lengths, if possible pdftk broken.pdf output fixed.pdf Burst  a  single PDF document into pages and dump its data to doc_data.txt
     >pdftk mydoc.pdf burst

(10) Burst  a  single  PDF document into encrypted pages. Allow low-quality printing
     >pdftk  mydoc.pdf  burst owner_pw foopass allow Degraded-Printing

(11) Write a report on PDF document metadata and bookmarks to report.txt
     >pdftk mydoc.pdf dump_data output report.txt


CSDN下载:http://download.csdn.net/source/122282 


本文转自Silent Void博客园博客,原文链接:http://www.cnblogs.com/happyhippy/archive/2007/04/06/710934.html,如需转载请自行联系原作者

相关文章
|
3月前
|
应用服务中间件
使用 Adobe Livecycle Enterprise service 将 word 文档转换成 PDF 格式
使用 Adobe Livecycle Enterprise service 将 word 文档转换成 PDF 格式
29 0
|
4月前
|
Ubuntu Java Linux
在Spring Boot中使用iTextPDF创建动态PDF文档
iTextPDF 是一个用于创建和操作 PDF(Portable Document Format)文档的流行的 Java 库。它提供了一套全面的功能,用于处理 PDF 文件,包括创建新文档、修改现有文档以及提取信息。
89 1
|
2月前
|
Linux iOS开发 MacOS
免费PDF转换和编辑工具 PDFgear 2.1.4
PDFgear是跨平台的PDF阅读与转换利器,支持Windows、MacOS和Linux。它提供多种阅读模式和丰富功能,如注释、签名、表单填写,可在不同设备上轻松编辑和转换PDF。软件界面简洁,操作直观,处理文件快速稳定,支持多种格式互转。
38 7
免费PDF转换和编辑工具 PDFgear 2.1.4
|
2月前
|
存储 Docker 容器
Star 8.3k!强烈推荐这款强大的 PDF 文件处理工具,PDF处理它全包了!
Star 8.3k!强烈推荐这款强大的 PDF 文件处理工具,PDF处理它全包了!
|
2月前
|
前端开发 JavaScript API
基于ElectronEgg&Python,从零开始打造一款免费的PDF桌面工具
基于ElectronEgg&Python,从零开始打造一款免费的PDF桌面工具
|
2月前
|
数据采集 移动开发 前端开发
springboot使用html模版导出pdf文档
springboot使用html模版导出pdf文档
|
3月前
|
Java Linux 数据安全/隐私保护
Java【代码 16】将word、excel文件转换为pdf格式和将pdf文档转换为image格式工具类分享(Gitee源码)aspose转换中文乱码问题处理
【2月更文挑战第3天】Java 将word、excel文件转换为pdf格式和将pdf文档转换为image格式工具类分享(Gitee源码)aspose转换中文乱码问题处理
107 0
|
3月前
|
开发框架 前端开发 .NET
福利来袭,.NET Core开发5大案例,30w字PDF文档大放送!!!
为了便于大家查找,特将之前开发的.Net Core相关的五大案例整理成文,共计440页,32w字,免费提供给大家,文章底部有PDF下载链接。
37 1
福利来袭,.NET Core开发5大案例,30w字PDF文档大放送!!!
|
4月前
|
数据采集 数据安全/隐私保护 Python
Python 快速合并PDF表格转换输出CSV文件
Python 快速合并PDF表格转换输出CSV文件
50 0
Python 快速合并PDF表格转换输出CSV文件
|
4月前
|
存储 Shell 数据安全/隐私保护
Python 自动化指南(繁琐工作自动化)第二版:十五、使用 PDF 和 WORD 文档
Python 自动化指南(繁琐工作自动化)第二版:十五、使用 PDF 和 WORD 文档
55 1

热门文章

最新文章