Switch pdf generation API which will work further