Use WT_Filter::post instead of $_POST.
Wrong location in file.
Add pdf-support for webtrees default thumbnails. See https://github.com/JustCarmen/fancy_treeview/issues/14