mardi 16 mars 2021

PDF file is not opening on some computers which is created by laravel?

We are creating pdf file whith hepl of laravel This file is opening on majority of laptops and software but not opening in few computers. can't figure out the reason. this is the error they are getting

enter image description here

Code I am using to creating pdf file

 $apiInstance = resolve(\XeroAPI\XeroPHP\Api\AccountingApi::class);
        $result = $apiInstance->getInvoiceAsPdf($this->xeroCredentials->getTenantId(), $invoice->xero_invoice_id, "application/pdf");

        $content = $result->fread($result->getSize());

        Storage::disk('s3')->put(getSettingValue('s3_invoice_pdfs') .$invoice->xero_invoice_number.'.pdf', $content, 'public');


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3vxHcfo
via IFTTT

Aucun commentaire:

Enregistrer un commentaire