Integrate all the things
Return the pdf data instead of write to file