Consolidate templates of preview and pdf transformer