public function getErrorCode($message = "")
{
$width = $this->getWidth();
if (strpos($this->getWidth(), "%") === false) {
$width = $this->getWidth() - 1 . "px";
}
// only display error message in debug mode
if (!\Pimcore::inDebugMode()) {
$message = "";
}
$code = '
<div id="pimcore_pdf_' . $this->getName() . '" class="pimcore_tag_pdf">
<div class="pimcore_tag_video_error" style="text-align:center; width: ' . $width . '; height: ' . ($this->getHeight() - 1) . 'px; border:1px solid #000; background: url(/pimcore/static6/img/filetype-not-supported.png) no-repeat center center #fff;">
' . $message . '
</div>
</div>';
return $code;
}