add support for pdf upload in compositeTemplates