Function to generate pdf. pdf string returned by fillin.