You are not logged in.
pdftk is a pdf took kit
http://www.accesspdf.com/pdftk/
I saw it mentioned in this article
http://www.linux.com/print.pl?sid=06/04/17/1943230
Offline
*find back post*
And if I'm in time, I'll post a PKGBUILD.
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
Here's a PKGBUILD I already had:
pkgname=pdftk
pkgver=1.12
pkgrel=1
pkgdesc="Pdftk is a simple tool for doing everyday things with PDF documents."
url="http://www.accesspdf.com/pdftk/"
license=""
depends=('gcc-gcj')
source=(http://www.pdfhacks.com/pdftk/$pkgname-$pkgver.tar.bz2)
md5sums=('ec1b6d9e06109c6f05e19033f1d91d8a')
build() {
cd $startdir/src/$pkgname-$pkgver/$pkgname
sed -i 's|//SID||' ../java_libs/com/lowagie/text/pdf/codec/PngImage.java
make -f Makefile.Generic || return 1
install -D -m755 pdftk $startdir/pkg/usr/bin/pdftk
install -D -m644 ../debian/pdftk.1 $startdir/pkg/usr/man/man1/pdftk.1
}
Offline
What?! You have a collection of PKGBUILD's that aren't on AUR yet?! Somewhere in a locked chest maybe? Next to the cure for itchy scrot and the solution for world peace?
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
Woot! Thanks.
Offline
What?! You have a collection of PKGBUILD's that aren't on AUR yet?! Somewhere in a locked chest maybe? Next to the cure for itchy scrot and the solution for world peace?
Of course! :twisted:
It's basically a directory where I keep my custom and in-progress PKGBUILD. Perhaps a couple of these are ready to go in AUR. I'll put pdftk in AUR as well as a couple of others.
Offline
Yeah, I have a lot of pkgbuilds that could go in aur but I havent felt like putting them up there
Offline
I uploaded pdftk to AUR. I've bumped the pkgrel because I filled the licence field. I've also uploaded highmoon and whirlgif from my secret stash.
Enjoy!
Offline
howdy. I got the PKGBUILD from the aur, for pdftk 1.41, and it won't build. can someone else try it for me?
which error messages would you like me to post?
thanks, sorry for the lack of details.
Offline
pdftk doen't build right now for me also. I didn't had time to look into it in details but it could be an issue with the latest gcc-gcj.
Offline
Something changed with 4.1.2-5. I'm stuck here as well. I don't have the skill to figure this out unfortuneatly.
Here is my output.
16 problems (16 warnings)
gcjh --classpath="." Gnu;
Exception in thread "main" java.io.IOException: can't find class file java_local/security/Provider.class in java.net.URLClassLoader{urls=[file:/var/abs/local/pdftk/src/pdftk-1.41/java_libs/gnu_local/java/security/provider/./,file:/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/rt.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
at gnu.classpath.tools.javah.Main.getClass(libgcj-tools.so.71)
at gnu.classpath.tools.javah.ClassWrapper.linkSupers(libgcj-tools.so.71)
at gnu.classpath.tools.javah.ClassWrapper.printFully(libgcj-tools.so.71)
at gnu.classpath.tools.javah.CniIncludePrinter.printClass(libgcj-tools.so.71)
at gnu.classpath.tools.javah.Main.writeHeaders(libgcj-tools.so.71)
at gnu.classpath.tools.javah.Main.run(libgcj-tools.so.71)
at gnu.classpath.tools.javah.GcjhMain.main(libgcj-tools.so.71)
make[2]: *** [Gnu.h] Error 1
rm Gnu.class
make[2]: Leaving directory `/var/abs/local/pdftk/src/pdftk-1.41/java_libs/gnu_local/java/security/provider'
make[1]: *** [libgcj_local] Error 2
make[1]: Leaving directory `/var/abs/local/pdftk/src/pdftk-1.41/java_libs'
make: *** [java_libs] Error 2
Last edited by russ816 (2007-05-14 16:56:16)
Offline
Same problem here. A working PKGBUILD would be great
Offline
*bumps*
Offline
I posted that message on pdftk's AUR page:
Comment by: Snowman on 20070529 [23:05:24]
I got it to build with a patch but it still doesn't work with the recent gcj:$ ./pdftk
libgcj failure: gcj linkage error.
Incorrect library ABI version detected. Aborting.Aborted
Since that post, I haven't done anything else (pdftk related). I'll try with the latest gcj from testing.
Offline
Making several makepkg changes the error message. I think some classes are needed but produced later or something like that.
Offline
It is not compiling yet
I'm looking for another command line pdf builder from png/gif images. What have you been using since pdftk stopped working (maybe I need a grammar help, too )?
Thank you
Offline
I needed pdftk in the last weeks. What I did was to download a debian package from the web, extract it and run the binary. Works great. But its only a temp solution...
Offline
thanks, the debian package is working just fine :-)
Offline
thanks, the debian package is working just fine :-)
Which one are you using? Could you post a url pls? I've tried a few, but got various errors and gave up :\
Offline
@sessy :
I just tried the debian lenny package http://packages.debian.org/lenny/i386/pdftk/download and put the extracted pdftk bin into the /usr/bin directory. Seems to work well enough....
Hope that helps.:)
Offline
I adopted the AUR package and created a new PKGBUILD for building against a binary from debian lenny. It works on my x64 machine. It's a hack but at least it works.
Offline
thanks for doing that, big_gie - at least it's something until the gcj prob gets sorted out.
Offline
I adopted the AUR package and created a new PKGBUILD for building against a binary from debian lenny. It works on my x64 machine. It's a hack but at least it works.
Thanks, it works perfectly!
Offline
package seems broken ...
gcjh --classpath="/usr/share/java/libgcj-4.3.jar:/tmp/yaourt-tmp-somekool/aur-pdftk/pdftk/src/pdftk-1.41/java_libs:." Token
gcjh --classpath="/usr/share/java/libgcj-4.3.jar:/tmp/yaourt-tmp-somekool/aur-pdftk/pdftk/src/pdftk-1.41/java_libs:." TokenMgrError
make[2]: Leaving directory `/tmp/yaourt-tmp-somekool/aur-pdftk/pdftk/src/pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/postscript'
make[1]: Leaving directory `/tmp/yaourt-tmp-somekool/aur-pdftk/pdftk/src/pdftk-1.41/java_libs'
g++ pdftk.cc -I../java_libs -march=i686 -mtune=generic -O2 -pipe -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -fdollars-in-identifiers -DPDFTK_VER=\"1.41\" -c
g++ attachments.cc -I../java_libs -march=i686 -mtune=generic -O2 -pipe -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -fdollars-in-identifiers -DPDFTK_VER=\"1.41\" -c
g++ report.cc -I../java_libs -march=i686 -mtune=generic -O2 -pipe -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -fdollars-in-identifiers -DPDFTK_VER=\"1.41\" -c
g++ pdftk.o attachments.o report.o ../java_libs/com/lowagie/text/pdf/pdf.a ../java_libs/com/lowagie/text/text.a ../java_libs/com/lowagie/text/pdf/pdf.a ../java_libs/com/lowagie/text/pdf/codec/codec.a ../java_libs/com/lowagie/text/pdf/codec/wmf/wmf.a ../java_libs/com/lowagie/text/pdf/fonts/fonts.a ../java_libs/com/lowagie/text/markup/markup.a ../java_libs/com/lowagie/text/xml/xmp/xmp.a ../java_libs/com/lowagie/bc/asn1/asn1.a ../java_libs/com/lowagie/text/pdf/codec/postscript/postscript.a ../java_libs/com/lowagie/text/pdf/fonts/Courier.o ../java_libs/com/lowagie/text/pdf/fonts/Courier-Bold.o ../java_libs/com/lowagie/text/pdf/fonts/Courier-BoldOblique.o ../java_libs/com/lowagie/text/pdf/fonts/Courier-Oblique.o ../java_libs/com/lowagie/text/pdf/fonts/Helvetica.o ../java_libs/com/lowagie/text/pdf/fonts/Helvetica-Bold.o ../java_libs/com/lowagie/text/pdf/fonts/Helvetica-BoldOblique.o ../java_libs/com/lowagie/text/pdf/fonts/Helvetica-Oblique.o ../java_libs/com/lowagie/text/pdf/fonts/Symbol.o ../java_libs/com/lowagie/text/pdf/fonts/Times-Bold.o ../java_libs/com/lowagie/text/pdf/fonts/Times-BoldItalic.o ../java_libs/com/lowagie/text/pdf/fonts/Times-Italic.o ../java_libs/com/lowagie/text/pdf/fonts/Times-Roman.o ../java_libs/com/lowagie/text/pdf/fonts/ZapfDingbats.o -I../java_libs -march=i686 -mtune=generic -O2 -pipe -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -fdollars-in-identifiers -DPDFTK_VER=\"1.41\" -lgcj -o pdftk
report.o: In function `ReplaceXmp(com::lowagie::text::pdf::PdfReader*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
report.cc:(.text+0x270f): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
Offline
Works fine here (i686).
report.cc:(.text+0x270f): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
I do not bother, it is only a warning.
Offline