2010/6/4 Lemon <lemon027(a)gmail.com>
pdftk 1.pdf 2.pdf 3.pdf cat output mixed.pdf
我发现使用这个命令还是报上面的错误:
test@xx ~: pdftk 4.pdf 5.pdf cat output mix.pdf
pdftk 4.pdf 5.pdf cat output mix.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 1
....
在 2010年6月4日 上午12:02,sync <jiannma(a)gmail.xn--com>:-0s6m5392c
> 大家好:
> 最近遇到个问题,就是有两个文件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
>
--
There are only 10 types of people in the world, those who understand binary
and those who don't.
_______________________________________________
Chinese mailing list
Chinese at
lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/chinese