Basic conversion to pdf on the fly semi-functional