How send a PDF made in pdf maker in email composer - IONIC 4

I have the following code, where I create a pdf with pdf maker, the goal would be to be able to send that pdf through email composer of ionic 4

Is it possible to do this without having to download the pdf? When you click the submit button it automatically attaches the pdf to the email

Sorry if my English is not very good, I do not have much practice in it.

I have already tried to have the email composer take the variable fileEntry and the url fileEntry.nativeURL in the attachments part, but there is an empty file error in the email application

create pdf:

this.storageService.getBovinos().then(bois=>{
      var body = this.getBoisSelecionados(bois);
      var docDefinition = {
        content: [
          { text: 'BOIS ESCOLHIDOS', style: 'header' },
          { text: 'CLIENTE: ' + nomeU, style: 'header' },
          { text: new Date().toTimeString(), alignment: 'right' },

          { text: 'EMAIL: ' + emailU, style: 'subheader' },

          { text: 'TELEFONE: ' + telefoneU, style: 'subheader' },

          { text: 'BOIS ESCOLHIDOS', style: 'story', margin: [0, 20, 0, 20] },
          {
            table: {
              widths: ['10%', '*', '*', '*','13%','*'],
              body: body
            }
          }
        ],
        styles: {
          header: {
            fontSize: 20,
            bold: true,
          },
          subheader: {
            fontSize: 16,
            bold: true,
            margin: [0, 15, 0, 0]
          },
          story: {
            italic: true,
            alignment: 'center',
            width: '50%',
          },
          tableHeader: {
            alignment: 'center',
            bold: true,
            fontSize: 12,
            color: 'white',
            fillColor: 'black',
          }
        }
      }
      this.pdfObj = pdfMake.createPdf(docDefinition);
    });
  }

   getBoisSelecionados(bois){
      var headers = {

        top:{
            col_1:{ text: 'CODIGO', style: 'tableHeader', alignment: 'center' },
            col_2:{ text: 'NOME', style: 'tableHeader', alignment: 'center' }, 
            col_3:{ text: 'RAÇA', style: 'tableHeader', alignment: 'center' },
            col_4:{ text: 'RGD', style: 'tableHeader', alignment: 'center' },
            col_5:{ text: 'SEXO', style: 'tableHeader', alignment: 'center'},
            col_6:{ text: 'CRIADOR', style: 'tableHeader', alignment: 'center'}
        }
    }
    var rows = bois;

    var body = [];
    for (var key in headers){
        if (headers.hasOwnProperty(key)){
            var header = headers[key];
            var row = new Array();
            row.push( header.col_1 );
            row.push( header.col_2 );
            row.push( header.col_3 );
            row.push( header.col_4 );
            row.push( header.col_5 );
            row.push( header.col_6 );
            body.push(row);
        }
    }
    for (var key in rows) 
    {
        if (rows.hasOwnProperty(key))
        {
            var data = rows[key];
            var row = new Array();
            row.push( { text: data.bovinoID.toString(), alignment: 'center', fontSize: 10,} );
            row.push( { text: data.nomeBovino.toString(), alignment: 'center', fontSize: 10,} );
            row.push( { text: data.racaBovino.toString(), alignment: 'center', fontSize: 10,});
            row.push( { text: data.rgd.toString(), alignment: 'center', fontSize: 10,});
            row.push( { text: data.sexo.toString(), alignment: 'center', fontSize: 10,});
            row.push( { text: data.criador.toString(), alignment: 'center', fontSize: 10,});
            body.push(row);
        }
    }
    return body;
  }

download pdf:

if (this.plt.is('cordova')) {
      try {
        this.pdfObj.getBuffer((buffer) => {
          var blob = new Blob([buffer], { type: 'application/pdf' });

          // Save the PDF to the data Directory of our App
          try {
            this.file.writeFile(this.file.dataDirectory, 'ITENS SELECIONADOS.pdf', blob, { replace: true }).then(fileEntry => {
              console.log(fileEntry);
              console.log(fileEntry.nativeURL);
              //console.log(this.file.dataDirectory);
              // Open the PDf with the correct OS tools
              this.fileOpener.open(this.file.dataDirectory + 'ITENS SELECIONADOS.pdf', 'application/pdf');
            });
          } catch (error) {
            console.log(error);
          }
        });
      } catch (error) {
        console.log(error);
      }
    } else {
      // On a browser simply use download!
      try {
        this.pdfObj.download('ITENS SELECIONADOS.pdf');
      } catch (error) {
        console.log(error);
        this.showToast("GERAR O PDF ANTES DE REALIZAR O DOWNLOAD");
      }
    }
  }

send email Note: I removed the attachment part because of giving error

    console.log(emailU + " " + telefoneU + " " + nomeU);
    let email = {
      to: 'rafael.cmota@hotmail.com',
      subject: 'COMPRA DO APLICATIVO',
      body: 
      'INFORMAÇÕES DO USUARIO: ' + '<br><br>' +
      'Nome: ' + nomeU + '<br>' +
      'Email: ' + emailU + '<br>' +
      'Telefone: ' + telefoneU + '<br><br>'
      ,
      isHtml: true
    };
    try {
      this.emailComposer.open(email);
    } catch (error) {
      console.log(error);
    }
  }

Were you able to resolve this issue?

Dae Rafael, conseguiu uma solução para essa demanda? Estou com a mesma necessidade. Parei na criaçao do PDF, agora preciso enviar apara uma lista de emails…