You are here: filling of pdf data fields in php - problems with pdftk « All PHP « IT news, forums, messages
filling of pdf data fields in php - problems with pdftk

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация