Is there a way to put this pdf related code in the mediafile app?