Turn off links in BIRT report in PDF and XLS output

When exporting the BIRT report to PDF, we want to turn off links.

Click on the field that has the hyperlink.

Click Script.

Set the Script to onRender and enter the script text.

Script text:

outputFormat=reportContext.getOutputFormat();
if(outputFormat.equalsIgnoreCase("pdf")||outputFormat.equalsIgnoreCase("xls"))
{    
    this.setAction(null);
}