create html for portal PDF