lundi 28 septembre 2020

Export PDF with images in Laravel?

I exported the table data into pdf. I have an image column in the table.

After exporting this column appears as blank column instead of holding images.

My controller:

  //upload document
        $product_details['image'] = $this->productUtil->uploadFile($request, 'image',  
      ('constants.product_img_path'), 'image');
        $imgData = base64_encode($product_details['image']);

And this is my script code.

 var pdf_btn = {
    extend: 'pdfHtml5',
    orientation: 'landscape',
    text: '<i class="fa fa-file-pdf" aria-hidden="true"></i> ' + LANG.export_to_pdf,
    className: 'btn-sm',
    
    exportOptions: {

        columns: ':visible',
    },
    footer: true,

Please some body help....



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

Aucun commentaire:

Enregistrer un commentaire