No PDF download from browserframe?

Hi,
using jmix 1.5 I have a browserFrame with web page inside. Having a button to ‘generate PDF’ a PDF is generated through JS inside the browserFrame.
Then a download should start, but that fails.

Outside Jmix, having that iFrame/browserFrame source in a stand-alone HTML file, everything works fine.

Am I missing a certain right, rule, referrer, sandbox tag?

Thanks in advance,
kr
HP

Hi,

from what I read also from other threads I think your trying to export charts as images to e.g. send them as reports via mail or something right?

I think the browser based charts are not really made for it.

But just a random thought: instead of trying to solve this puzzle from within the Jmix app, there is one technology that is made for programmatically accessing web apps in other scenarios: selenium. Have you ever thought of running a selenium script to take a screenshot of your app and with that solve the problem from the outside and not from the inside?

Perhaps this helps you :slight_smile:

Cheers
Mario

Hi Mario!

Thanks for your reply and time to read my various threads dealing with those couple of issues in the same ‘fog’.
Yes, we have some nice report, want to use echarts and also a screen and a pdf display. So we struggle at the point to bring images to pdf.

Now I understand the benefits of libs like icepear and of course selenium. Those were our current discoveries, too. Having tested several JS libs _inside the browserFrame to get images from echarts/svg and make pdfs.

Long story short,
yes, we’re going with selenium the next days and also give icepear a try, what seems to be a little bit more lightweight, just to get echart image-shots for further use in java/jmix directly.

Looking to the first question here, is there an idea, why pdf downloads from inside browserFrame didn’t work? We set several sandbox tags, but with no effect.

So, thank u again,
br
HP