Play Framework: Generate PDF from template that uses Javascript for graphing
        Posted  
        
            by 
                digiarnie
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by digiarnie
        
        
        
        Published on 2011-11-29T01:41:27Z
        Indexed on 
            2011/11/29
            1:50 UTC
        
        
        Read the original article
        Hit count: 295
        
I have a template that has some Javascript used to generate graphs in the browser. I would like to use that same template to create a PDF and send as an attachment in an e-mail. In this scenario, there would be no browser/client interaction.
I am using the PDF module that is available from the Play website and I have managed to get the PDF rendering to work. The only issue is that the graphs don't show up in the PDF but all other static text does. I'm assuming the graphs aren't appearing in the PDF due to the Javascript not being executed prior to the PDF generation.
Does anyone have any ideas on how to get around this problem?
© Stack Overflow or respective owner