You are not logged in.

#1 2006-04-27 12:56:40

luke
Member
From: US
Registered: 2004-06-22
Posts: 54

[request] pdftk

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

#2 2006-04-27 13:02:49

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: [request] pdftk

*find back post*

And if I'm in time, I'll post a PKGBUILD. smile


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#3 2006-04-27 23:49:06

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [request] pdftk

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

#4 2006-04-28 07:48:31

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: [request] pdftk

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

#5 2006-04-28 17:20:47

luke
Member
From: US
Registered: 2004-06-22
Posts: 54

Re: [request] pdftk

Woot! Thanks.

Offline

#6 2006-04-28 22:19:49

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [request] pdftk

FUBAR wrote:

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

#7 2006-04-29 00:02:44

WillySilly
Member
Registered: 2005-01-14
Posts: 268

Re: [request] pdftk

Yeah, I have a lot of pkgbuilds that could go in aur but I havent felt like putting them up there

Offline

#8 2006-04-29 05:05:02

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [request] pdftk

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. tongue

Enjoy!

Offline

#9 2007-05-13 00:17:44

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: [request] pdftk

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

#10 2007-05-14 06:17:01

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [request] pdftk

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

#11 2007-05-14 16:54:36

russ816
Member
Registered: 2006-06-09
Posts: 18

Re: [request] pdftk

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

#12 2007-05-22 10:56:41

sessy
Member
Registered: 2006-01-20
Posts: 104

Re: [request] pdftk

Same problem here. A working PKGBUILD would be great wink

Offline

#13 2007-07-10 10:57:27

sessy
Member
Registered: 2006-01-20
Posts: 104

Re: [request] pdftk

*bumps*

Offline

#14 2007-07-13 07:03:27

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [request] pdftk

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

#15 2007-08-03 21:29:09

Jeddo
Member
Registered: 2007-08-03
Posts: 11

Re: [request] pdftk

Making several makepkg changes the error message. I think some classes are needed but produced later or something like that.

Offline

#16 2007-12-21 15:59:33

cems
Member
Registered: 2007-08-12
Posts: 13

Re: [request] pdftk

It is not compiling yet sad

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 smile)?

Thank you

Offline

#17 2007-12-22 06:44:19

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: [request] pdftk

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

#18 2007-12-26 20:26:11

nickwe
Member
Registered: 2007-07-12
Posts: 9

Re: [request] pdftk

thanks, the debian package is working just fine :-)

Offline

#19 2007-12-27 12:18:18

sessy
Member
Registered: 2006-01-20
Posts: 104

Re: [request] pdftk

nickwe wrote:

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

#20 2008-01-06 22:53:53

jobu
Member
Registered: 2008-01-06
Posts: 2

Re: [request] pdftk

@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

#21 2008-01-07 20:35:00

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: [request] pdftk

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

#22 2008-01-10 18:23:38

jobu
Member
Registered: 2008-01-06
Posts: 2

Re: [request] pdftk

thanks for doing that, big_gie - at least it's something until the gcj prob gets sorted out.

Offline

#23 2008-01-11 21:06:12

sessy
Member
Registered: 2006-01-20
Posts: 104

Re: [request] pdftk

big_gie wrote:

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

#24 2008-08-29 16:22:24

somekool
Member
Registered: 2008-08-27
Posts: 25

Re: [request] pdftk

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

#25 2008-08-30 13:12:05

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [request] pdftk

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

Board footer

Powered by FluxBB