|
Posted by Junnichi on 12/14/06 14:06
Hello,
I'm going to program a web application which should fill datafields of
pdf files with data (from a database) and merge them to a new pdf file.
I've heard about using pdftk (PDF Toolkit) to do this. But I've got
some problems with the linux version I am not able to solve.
I tried the following commands:
pdftk test.pdf fill_form out.fdf output out.pdf dont_ask
flatten
or
pdftk test.pdf fill_form out.fdf output out.pdf
test.pdf is the original pdf file
out.fdf has all the data for those data fields of the pdf file
pdftk responds with the following error:
Unhandled Java Exception:
java.lang.ArrayIndexOutOfBoundsException: 1
at virtual thunk to std.basic_ostringstream<byte,
std.char_traits<byte>, std::allocator<byte> >.~basic_ostringstream()
(Unknown Source)
at virtual thunk to std.basic_ostringstream<byte,
std.char_traits<byte>, std::allocator<byte> >.~basic_ostringstream()
(Unknown Source)
at virtual thunk to std.basic_ostringstream<byte,
std.char_traits<byte>, std::allocator<byte> >.~basic_ostringstream()
(Unknown Source)
at virtual thunk to std.basic_ostringstream<byte,
std.char_traits<byte>, std::allocator<byte> >.~basic_ostringstream()
(Unknown Source)
at virtual thunk to std.basic_ostringstream<byte,
std.char_traits<byte>, std::allocator<byte> >.~basic_ostringstream()
(Unknown Source)
at virtual thunk to std.basic_ostringstream<byte,
std.char_traits<byte>, std::allocator<byte> >.~basic_ostringstream()
(Unknown Source)
at virtual thunk to std.basic_ostringstream<byte,
std.char_traits<byte>, std::allocator<byte> >.~basic_ostringstream()
(Unknown Source)
at __libc_start_main (/lib64/tls/libc.so.6)
at java.io.ByteArrayOutputStream.reset() (pdftk)
Can anyone solve this problem or give me a hint, please?
Or do you have another idea of solving my task?
Thanks in advance.
Junnichi
[Back to original message]
|