generate results pdf