I am generating a pdf that takes a div and sends it to the pef, but when generating it, the url is attached to the pdf that was generated, and the page number.
how could i take it off
this is my div
<div id="print-section">
<div id="goqrcode"
style=" width:200px; margin-left: auto; margin-right: auto; display: block;">
<h3 >{{nombre}} | {{item}}</h3></div>
</div>
and so is my js
print(): void {
let vacio: string = null;
let printContents, popupWin;
printContents = document.getElementById('print-section').innerHTML;
popupWin = window.open('', '_blank', 'top=50%,left=0,height=100%,width=auto');
popupWin.document.open();
popupWin.document.write(`
<html>
<head>
<title></title>
<style>
.content {
height: 100vh;
width: 100%;
display: flex;
flex-direction: column;
}
.img-content {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
.observation {
height: 150px;
overflow: hidden;
overflow-y: auto;
}
</style>
</head>
<body onload="window.print();window.close()">${printContents}</body>
</html>`
);
popupWin.document.close();
}
and this is how the pdf looks, I want that url not to be generated inside the pdf
Thanks @Legna it gave me an idea why it was coming out, and I found a way to remove it from the code and not from the browser property anymore.
using these lines