dany.isenguerre Posted April 11, 2023 Share Posted April 11, 2023 Hello,In Jasper Studio 8 and JRS 7.9.2I wrote a CVC to display a marker on a Leaflet mapThe marker is a SVG shape but the map is a Leaflet one (png ?)On Studio- the CVC renders perfectly in HTML mode but only the SVG marker is exported to PDF an gets the size of the page- only the SVG marker is rendered in Java mode On JRS: the CVC is perfectly rendered but only the SVG marker is exported to PDF with the size of the pageHow to export Leaflet background map in the PDF ?RegardsDany Link to comment Share on other sites More sharing options...
anish.rai Posted April 12, 2023 Share Posted April 12, 2023 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
Thomas Tibcken Posted April 12, 2023 Share Posted April 12, 2023 Hi Dany, there is a known problem with export to PDF for HighCharts that is related to an update of Google Chrome. The effect you describe is the same. HTML works fine, but PDF is empty. Maybe the solution will help you as well. There are 2 settings you can add to your Studio Properties. net.sf.jasperreports.chrome.page.isolate=truenet.sf.jasperreports.chrome.argument.remote-allow-origins=*Re-start Studio and try to create a PDF.Please let me know it that will work for you, or if you still do not see the Map in the PDF. Regards TT Link to comment Share on other sites More sharing options...
dany.isenguerre Posted April 17, 2023 Author Share Posted April 17, 2023 Hello,Thanks for this proposal, but this is not the solutionThe problem is the same on our professional JRS.I think there is a problem with the "asynchronous"call of Leaflet map tile images.The only rendered element in Java mode and PDF export is the SVG marker I create dynamically in my CVC and put on the MapI will try with a simple image to see what happensRegardsDany Link to comment Share on other sites More sharing options...
Thomas Tibcken Posted April 18, 2023 Share Posted April 18, 2023 Hi Dany,thank you for your feedback. Please let me know what came out of your test with the simple image. I will pass your question to one of our experts.Regards TT Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now