I have a form and on that form contains a related tabpanel. I can generate a pdf of that form, but the tabpanel will will not show on the pdf.
Here’s the code that generates the pdf in web client:
var fname = currentcontroller.getName() + '_print';
var installdir = java.lang.System.getProperty("user.dir");
var filepath = installdir + '/server/webapps/ROOT/pdf/invoice.pdf';
//application.output(fname);
if (!forms[fname])
{
fname = currentcontroller.getName();
}
//application.output(fname);
forms[fname].controller.print(true, true, plugins.pdf_output.getPDFPrinter(filepath));
application.showURL('/pdf/invoice.pdf','_self');
What can I do to get the tabpanel to display on the pdf?