No pictures when saving pdf

More
1 week 2 days ago #54 by Alex-Mata
Shein, thank you very much
The problem with using a self-signed certificate was solved as follows
Add it at the end of the constructor method :

// Allow self-signed ssl certificate
$context = stream_context_create([
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed'=> true
]
]);

$this->setHttpContext($context);

Thus modified constructor method :
public function __construct($config = [])
{
$this->config = $config;
$this->app = CMSFactory::getApplication();

if (empty($this->config))
{
$this->config = [
'chroot' => JPATH_ROOT,
'isRemoteEnabled' => true,
'isFontSubsettingEnabled' => true,
'isHtml5ParserEnabled' => true,
'isJavascriptEnabled' => false,
'defaultMediaType' => 'all',
'defaultFont' => 'Helvetica, sans-serif',
'defaultPaperSize' => 'a4',
'defaultPaperOrientation' => 'portrait',
'tmpDir' => ComponentHelper::TMPDIR,
];
}

parent::__construct($this->config);

$this->setBasePath(JPATH_ROOT);
$this->setCustomFonts();

// Allow self-signed SSL certificate
$context = stream_context_create([
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed'=> true
]
]);

$this->setHttpContext($context);

}

Please Log in or Create an account to join the conversation.

Login

We can create your own desire

You need a component a plugin , module or template ourteam is compose by Joomla! administrator certified, Designer and fullstack dev. 

Secure payment

by Paypal and Stripe

    

Copyright Com'3Elles @ since 2023
https://extensions.com3elles.com  is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla!® name and logo is used under a limited license granted by Open Source Matters, the trademark holder in the United States and other countries.