My response.data
is returned a ticket in HTML format, I want to convert it to PDF. How do I?
Below a part of the code:
imprimirboleto: function () {
axios({
method: 'get',
url: '/server/boleto',
params: {
banco : this.banco,
valor : this.valor,
}
}).then(function (response)
{
var myWindow = window.open("", "MsgWindow", "width=800,height=600, resizable, scrollbars,status")
myWindow.document.write(response.data) // aqui quero abrir em pdf
}).catch(function (error) {
console.log(error)
})
}