change case of 3rd party library methods
This commit is contained in:
@ -20,6 +20,7 @@ use OxidEsales\Eshop\Core\UtilsView;
|
|||||||
use Smarty;
|
use Smarty;
|
||||||
use Spipu\Html2Pdf\Exception\Html2PdfException;
|
use Spipu\Html2Pdf\Exception\Html2PdfException;
|
||||||
use Spipu\Html2Pdf\Html2Pdf;
|
use Spipu\Html2Pdf\Html2Pdf;
|
||||||
|
use Spipu\Html2Pdf\MyPdf;
|
||||||
|
|
||||||
abstract class pdfdocumentsGeneric extends Base implements genericInterface
|
abstract class pdfdocumentsGeneric extends Base implements genericInterface
|
||||||
{
|
{
|
||||||
@ -72,11 +73,14 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
|
|||||||
$oPdf = oxNew(Html2Pdf::class, ...$this->getPdfProperties());
|
$oPdf = oxNew(Html2Pdf::class, ...$this->getPdfProperties());
|
||||||
$oPdf->setTestIsImage(false);
|
$oPdf->setTestIsImage(false);
|
||||||
$htmlContent = $this->getHTMLContent($iSelLang);
|
$htmlContent = $this->getHTMLContent($iSelLang);
|
||||||
|
|
||||||
$oPdf->writeHTML($htmlContent);
|
$oPdf->writeHTML($htmlContent);
|
||||||
$oPdf->pdf->SetAuthor(Registry::getConfig()->getActiveShop()->getFieldData('oxname'));
|
/** @var MyPdf $myPdf */
|
||||||
$oPdf->pdf->SetTitle(Registry::getLang()->translateString($this->getTitleIdent()));
|
$myPdf = $oPdf->pdf;
|
||||||
$oPdf->pdf->SetCreator('D³ PDF Documents for OXID eShop');
|
$myPdf->setAuthor( Registry::getConfig()->getActiveShop()->getFieldData( 'oxname'));
|
||||||
$oPdf->pdf->SetSubject(NULL);
|
$myPdf->setTitle( Registry::getLang()->translateString( $this->getTitleIdent()));
|
||||||
|
$myPdf->setCreator( 'D³ PDF Documents for OXID eShop');
|
||||||
|
$myPdf->setSubject( NULL);
|
||||||
return $this->output($oPdf, $sFilename, $target, $htmlContent);
|
return $this->output($oPdf, $sFilename, $target, $htmlContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user