0

I'm crating custom PDF file, Bellow script is working good except for MacBook & iPhone devices.

$fileName = 'rma'.date("Y-m-d_h-i-s").'.pdf';

$this->fileFactory->create(
   $fileName,
   $pdf->render(),
   \Magento\Framework\App\Filesystem\DirectoryList::VAR_DIR,
   'application/pdf'
);

Not showing any error in log files.

Showing this "The operation couldn’t be completed. Protocol error" error on iPhone screen.

Any help will be appreciated.

Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.