add pdf and flow