added PDF workarounds

This commit is contained in:
Roland Gruber 2013-05-07 19:19:00 +00:00
parent 103ee7fc0c
commit 8a3d23c944
1 changed files with 6 additions and 0 deletions

View File

@ -841,6 +841,12 @@ abstract class baseModule {
if (isset($this->attributes[$attrName]) && (sizeof($this->attributes[$attrName]) > 0)) {
natcasesort($this->attributes[$attrName]);
$value = implode($delimiter, $this->attributes[$attrName]);
// TODO workarounds for PDF parser, remove when migrated to other PDF library
$value = str_replace("\r\n", " ", $value);
$value = str_replace("\n", " ", $value);
$value = str_replace("\r", " ", $value);
// TODO workaround for UFPDF, remove when migrated to other PDF library
$value = trim($value);
}
$result[get_class($this) . '_' . $name] = array('<block><key>' . $label . '</key><value>' . $value . '</value></block>');
}