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


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to