ExportToPDF ignores filters


When I filter the tasks of Gantt and then I make an export, the resulting PDF file contains all tasks when it should contain only the filtered tasks.

How to export the filtered tasks?

Can you share the code that is used for task filtering ?

var filterType= document.getElementsByName(‘filterType’);

gantt.attachEvent(“onBeforeTaskDisplay”, function(id, task){
for (var i=0; i<filterType.length; i++) {
var filter_input = filterType[i];

			if (filter_input.checked){
				if(task.typetache==filter_input.value) {
					return true;

		return false;

Yep, this logic is not reflected in the export currently - will be fixed in the next updated ( in next two weeks )