I have a function to open pdf view
const Print = (data) => { const options = { orientation: "p", unit: "pt", format