From: Rob on
Andrew <andrew(a)delta-link.com.au> wrote:
> Sorry about that...
>
> I followed the info on the http://www.accesspdf.com/pdftk/ website -
> with regards to downloading and installing of the rpm package and I
> also tried the "make" commands.
>
> The command: "rpmbuild --rebuild pdftk-1.12-0.src.rpm" seemed to
> run without error, but I was not able to find any binary file
> called: pdftk
> I did try all the rpm packages and source packages.

Who told you to use an rpmbuild command to install an rpm package???

> I think my problem might be the libraries... Not sure have to proceed
> in that respect, especially when I got no errors from the rpm command.

But the command you used is not for installing the rpm... so I would
not be surprised that it is not installed.
From: mjt on
On 24 Jun 2010 16:11:45 GMT
Rob <nomail(a)example.com> wrote:

> > The command: "rpmbuild --rebuild pdftk-1.12-0.src.rpm" seemed to
> > run without error, but I was not able to find any binary file
> > called: pdftk
> > I did try all the rpm packages and source packages.
>
> Who told you to use an rpmbuild command to install an rpm package???

It's a source RPM - that's how you build to a binary RPM

--
Computer Science is merely the post-Turing decline in formal systems
theory.
<<< Remove YOURSHOES to email me >>>

From: Andrew on
Thanks mjt and Rob.

I understand why Rob has asked that question - I did not realise some
rpm packages are source and some are binary - I just used the commands
that were on the accesspdf website.

So, I then tried the following and it worked:

rpm -ivh pdftk-1.12-0.i586.rpm

I now have a runnable binary pdftk file on our server. Now I have to
put it through some tests...

Thanks guys.

mjt - If I run into problems I will investigate the other options that
you found.

Thanks again.
From: mjt on
On Thu, 24 Jun 2010 17:51:58 -0700 (PDT)
Andrew <andrew(a)delta-link.com.au> wrote:

> So, I then tried the following and it worked:
>
> rpm -ivh pdftk-1.12-0.i586.rpm
>
> I now have a runnable binary pdftk file on our server. Now I have to
> put it through some tests...

Just be sure you understand something - you've installed
version 1.12 ... the last version of pdftk is 1.41, which
means you're missing out on functionality and bug fixes.
Go here and scroll down to "Version History" to read the
changes between 1.12 and 1.41.
http://www.accesspdf.com/pdftk/

That's why I suggest downloading the tarball source (1.41)
and build it.

--
Oh Dad! We're ALL Devo!
<<< Remove YOURSHOES to email me >>>

From: Andrew on
Thanks for the heads up - I will check out the differences.
I just need simple pdf form merging at this stage.
I did try to build from the tarball source and here are some of the
messages that I get from the make -f Makfile.Generic command:

make[2]: Leaving directory `/dlalocal/pdftk_rpm/pdftk-1.41/java_libs/
java_local/security'
make -C "/dlalocal/pdftk_rpm/pdftk-1.41/java_libs/com/lowagie/text";
make[2]: Entering directory `/dlalocal/pdftk_rpm/pdftk-1.41/java_libs/
com/lowagie/text'
gcj -O2 --encoding=UTF-8 --classpath="/dlalocal/pdftk_rpm/pdftk-1.41/
java_libs" -c Anchor.java -o Anchor.o
/dlalocal/pdftk_rpm/pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/
postscript/PAPencil.java:290: error: Type `GlyphVector' not found in
the declaration of the local variable `glyphVector'.
GlyphVector glyphVector =
this.state.font.createGlyphVector(this.graphics.getFontRenderContext(),
aString);
^
1 error
make[2]: *** [Anchor.o] Error 1
make[2]: Leaving directory `/dlalocal/pdftk_rpm/pdftk-1.41/java_libs/
com/lowagie/text'
make[1]: *** [itext] Error 2
make[1]: Leaving directory `/dlalocal/pdftk_rpm/pdftk-1.41/java_libs'
make: *** [java_libs] Error 2

As I said before, I am not clever enough to work through this. I am
prepared to use the pdftk 1.12

Thanks mjt.
Regards,
Andrew.