[TYPO3-dev] Filling PDF Forms in TYPO3
Kay Strobach
typo3 at kay-strobach.de
Sat Mar 19 08:58:53 CET 2011
Hi Guys,
after some research i found out, that some form elements can be replaced
with:
$buffer = file_get_contents($this->file);
foreach($this->values as $key=>$value) {
$buffer = str_replace(
'/T('.$key.')/V(',
'/T('.$key.')/V('.$value,
$buffer);
}
echo $buffer;
But that's not really stable, as it won't work with tagged pdf and every
pdf programm seems to add random withespace characters :(
It's hard for me to understand why there should be no lib for such a
fundamental problem ;)
Regards
Kay
--
http://www.kay-strobach.de - Open Source Rocks
More information about the TYPO3-dev
mailing list