Hello Devs, I am coming up with a customized UI to use with fineract. I am currently handling the reports part, specifically the outputs. HTML and CSV outputs are handled just fine. I am finding an issue handling the pdf out. This is how I am handling it (similar to CSV, for CSV this works okay)
with data as the response I get from the server, using ReactJS Framework export default function PDFRender({ pdf }) { const url = URL.createObjectURL( new Blob([pdf], { type: 'application/pdf;charset=UTF-8' }) ); return ( <a href={url} download="report.pdf" target="_blank"> Download Pdf Report </a> ); } The file is generated with a size of about 71.4KB, but when I open the file, the page is blank. What am I doing wrong? Thanks. Regards. Wilfred
_______________________________________________ Mifos-users mailing list Mifos-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mifos-users