[FZH] 关于合并pdf 的问题

Alvin qzhang.g在gmail.com
星期四 六月 3 16:07:42 UTC 2010


除了从规范文本转过来的,pdf文件里面就是一堆mess,和宇宙的初始状态很像,不用费神去研究了,找到工具能用则用,不能用拉倒

2010/6/4 sync <jiannma at gmail.com>

> 大家好:
>   最近遇到个问题,就是有两个文件1.pdf , 2.pdf ,我想把它们合并到一起,形成3.pdf ;
> 在网上搜索了下,发现下面的网址介绍了有个工具叫"pdftk",网站地址为:
> http://www.dedoimedo.com/computers/pdftk.html
>
> 按照它介绍的,我使用yum install pdftk 进行安装,
> test at xx ~: which pdftk
> pdftk-1.41-22.fc12.i686
>
> 然后使用:
> test at xx ~: pdftk A=1.pdf  B=2.pdf  output 3.pdf
> 出现以下的错误:
>> java.lang.ArrayIndexOutOfBoundsException: -661312968
>   at java.util.ArrayList.get(libgcj.so.10)
>   at com.lowagie.text.pdf.PdfReader.removeUnusedNode(itext-2.1.7.jar.so)
>   at com.lowagie.text.pdf.PdfReader.removeUnusedObjects(itext-2.1.7.jar.so
> )
>   at com.lowagie.text.pdf.PdfReader.readPdf(itext-2.1.7.jar.so)
>   at com.lowagie.text.pdf.PdfReader.<init>(itext-2.1.7.jar.so)
>   at com.lowagie.text.pdf.PdfReader.<init>(itext-2.1.7.jar.so)
> Error: Unexpected Exception in open_reader()
> Error: Failed to open PDF file:
>   4.pdf
> Errors encountered.  No output created.
> Done.  Input errors, so no output created.
> Exit ”
>
> 网上查了下可能的原因是:
> Pdftk 工具使用的是iText(Java-PDF的库)编译的,而这个版本仅仅支持标准的加密文件
>
> 以下是摘录的内容:
>
> You (should) know that Pdftk is nothing more than a very old version of
> iText (a Java-PDF library) compiled with GCJ and extended with some command
> line functionality.
>
> The keywords in the above statement are "VERY OLD". The iText version that
> was used to create Pdftk only supported standard encryption (Alleged RC4);
> it didn't support AES encryption (yet).
>
> 各位同鞋们有没什么好的建议阿?谢谢...
> _______________________________________________
> Chinese mailing list
> Chinese at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/chinese
>



-- 

~Alvin


关于邮件列表 Chinese 的更多信息