[FZH] 关于合并pdf 的问题

Lemon lemon027在gmail.com
星期四 六月 3 16:11:42 UTC 2010


我也遇到处理这个问题

我当时自己记录下来了,你可以看下
http://www.nomel.me/index.php/blog/34-thinking-of-my-life-/53-linuxpdf.html

在 2010年6月4日 上午12:07,Alvin <qzhang.g在gmail.com>写道:

> 除了从规范文本转过来的,pdf文件里面就是一堆mess,和宇宙的初始状态很像,不用费神去研究了,找到工具能用则用,不能用拉倒
>
> 2010/6/4 sync <jiannma在gmail.com>
>
> > 大家好:
> >   最近遇到个问题,就是有两个文件1.pdf , 2.pdf ,我想把它们合并到一起,形成3.pdf ;
> > 在网上搜索了下,发现下面的网址介绍了有个工具叫"pdftk",网站地址为:
> > http://www.dedoimedo.com/computers/pdftk.html
> >
> > 按照它介绍的,我使用yum install pdftk 进行安装,
> > test在xx ~: which pdftk
> > pdftk-1.41-22.fc12.i686
> >
> > 然后使用:
> > test在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 mailing list
> Chinese at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/chinese
>



-- 
There are only 10 types of people in the world, those who understand binary
and those who don't.


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